Skip to content

Commit

Permalink
Add initial flake.nix; flake.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzixnerd committed Aug 28, 2024
1 parent 527f884 commit 94a0a9b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
description = "proof-system prerequisites";

inputs = {
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [
# rust inputs
rustup
rust-analyzer
libiconv # Needed for macOS for rustup

# ocaml inputs
opam

# go inputs
gopls
go

];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
}

0 comments on commit 94a0a9b

Please sign in to comment.