forked from marcthurley/sharpSAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (43 loc) · 1.38 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
47
48
49
{
description = "#SAT solver based on modern DPLL based SAT solver technology";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
outputs =
{ self, nixpkgs, ... }:
let
lib = nixpkgs.lib;
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
sharpSAT = pkgs: pkgs.callPackage ./sharpSAT.nix { };
in
{
formatter = lib.genAttrs systems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
packages = lib.genAttrs systems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = self.packages.${system}.sharpSAT;
sharpSAT = sharpSAT pkgs;
sharpSAT-static = sharpSAT pkgs.pkgsStatic;
container = pkgs.dockerTools.buildLayeredImage {
name = "sharpSAT";
contents = [ self.packages.${system}.sharpSAT ];
config = {
Entrypoint = [ "/bin/sharpSAT" ];
Labels = {
"org.opencontainers.image.source" = "https://github.com/SoftVarE-Group/sharpSAT";
"org.opencontainers.image.description" =
"#SAT solver based on modern DPLL based SAT solver technology";
"org.opencontainers.image.licenses" = "MIT";
};
};
};
}
);
};
}