-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
33 lines (33 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
{
description = "A modern SAT solver in Rust";
inputs.nixpkgs.url = github:NixOS/nixpkgs;
outputs = { self, nixpkgs }:
{
packages = builtins.listToAttrs
(map
(system:
with import nixpkgs { system = "${system}"; };
{
name = system;
value = {
default =
rustPlatform.buildRustPackage rec {
version = "0.17.3-20240326";
name = "splr-${version}";
pname = "splr";
src = self;
cargoHash = "sha256-inZ6gvvof3YwUeplHpAMme8AI+Y7B2R/uT1KojSEHxE=";
buildInputs = rustc.buildInputs ++ lib.optional stdenv.isDarwin [ libiconv ];
buildPhase = "cargo build --release";
installPhase = ''
mkdir -p $out/bin;
install -t $out/bin target/release/splr target/release/dmcr
'';
};
};
}
)
[ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]
);
};
}