-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
111 lines (85 loc) · 2.46 KB
/
Copy pathflake.nix
File metadata and controls
111 lines (85 loc) · 2.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
description = "A flake for building Flint";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-26.05;
inputs.clibsedml = {
url = github:flintproject/clibsedml;
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.flint-libsbml = {
url = github:flintproject/flint-libsbml;
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.flint-sundials = {
url = github:flintproject/flint-sundials;
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.flint-soslib = {
url = github:flintproject/flint-soslib;
inputs.flint-sundials.follows = "flint-sundials";
inputs.flint-libsbml.follows = "flint-libsbml";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, clibsedml, flint-libsbml, flint-sundials, flint-soslib }: let
allSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f (import nixpkgs { inherit system; }));
in {
packages = forAllSystems (pkgs: with pkgs; {
default = stdenv.mkDerivation {
pname = "flint";
version = "2.4.99";
nativeBuildInputs = [
autoreconfHook
gnum4
pkg-config
boost178
protobuf
wxwidgets_3_2
];
buildInputs = [
protobuf
boost178
libmicrohttpd
libxml2
sqlite
zeromq czmq
wxwidgets_3_2
flint-libsbml.packages.${system}.default
flint-sundials.packages.${system}.default
flint-soslib.packages.${system}.default
clibsedml.packages.${system}.default
];
src = ./source;
configureFlags = [
"--with-boost=${boost178.dev}"
"--with-wxWidgets=${wxwidgets_3_2}"
];
doCheck = true;
enableParallelBuilding = true;
};
});
devShells = forAllSystems (pkgs: with pkgs; let
default-shell = mkShell {
packages = [
autoconf
automake
libtool
pkg-config
protobuf
boost178
wxwidgets_3_2
libmicrohttpd
libxml2
sqlite
zeromq czmq
wxwidgets_3_2
flint-libsbml.packages.${system}.default
flint-sundials.packages.${system}.default
flint-soslib.packages.${system}.default
clibsedml.packages.${system}.default
];
};
in {
default = default-shell;
});
};
}