-
Notifications
You must be signed in to change notification settings - Fork 989
/
flake.nix
46 lines (39 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "THE MIMBLEWIMBLE BLOCKCHAIN.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-22.11";
};
outputs = { self, nixpkgs, }:
let
forAllSystems = with nixpkgs;
lib.genAttrs lib.systems.flakeExposed;
nixpkgsFor = forAllSystems (system: import nixpkgs
{ inherit system; overlays = [ self.overlay ]; }
);
in
{
overlay = final: prev:
with final;
{
grin = pkgs.rustPlatform.buildRustPackage {
pname = "grin";
version = "5.2.0-alpha.2";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkgs.llvmPackages_latest.clang ];
buildInputs = [ pkgs.ncurses ];
LIBCLANG_PATH =
"${pkgs.llvmPackages_latest.libclang.lib}/lib";
# do not let test results block the build process
doCheck = false;
};
};
packages = forAllSystems (
system: {
default = nixpkgsFor.${system}.grin;
}
);
};
}