forked from FlorentAvellaneda/EvalMaxSAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
54 lines (52 loc) · 1.19 KB
/
flake.nix
File metadata and controls
54 lines (52 loc) · 1.19 KB
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
47
48
49
50
51
52
53
54
{
description = "A high-performance MaxSAT solver";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs =
{
self,
nixpkgs,
}:
let
inherit (nixpkgs) lib;
systems = lib.intersectLists lib.systems.flakeExposed lib.platforms.linux;
forAllSystems = lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: nixpkgs.legacyPackages.${system});
fs = lib.fileset;
evalmaxsat-package =
{
stdenv,
cmake,
zlib,
}:
stdenv.mkDerivation {
name = "evalmaxsat";
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./lib
./main
./cmake
./CMakeLists.txt
./EvalMaxSATConfig.cmake.in
];
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
};
in
{
packages = forAllSystems (
system:
let
evalmaxsat = nixpkgsFor.${system}.callPackage evalmaxsat-package {
};
in
{
inherit evalmaxsat;
default = evalmaxsat;
}
);
};
}