-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (45 loc) · 1.07 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 = "Development environment for d4-oxide";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
d4 = {
url = "github:SoftVarE-Group/d4v2/2.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, d4, ... }:
let
lib = nixpkgs.lib;
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
in
{
formatter = lib.genAttrs systems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
devShells = lib.genAttrs systems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
d4Pkgs = d4.packages.${system};
in
{
default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.cmake
pkgs.pkg-config
];
buildInputs = [
pkgs.boost.dev
pkgs.pkgsStatic.mpfr.dev
pkgs.pkgsStatic.gmp.dev
d4Pkgs.mt-kahypar.dev
];
};
}
);
};
}