-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
65 lines (44 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
description = "A flake for building SOSlib for Flint";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-24.11;
inputs.flint-libsbml = {
url = github:flintproject/flint-libsbml/5f01e223b0c1be9e06d007718aec6ae1b9dab436;
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.flint-sundials = {
url = github:flintproject/flint-sundials;
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.soslib = {
url = github:raim/SBML_odeSolver;
flake = false;
};
outputs = { self, nixpkgs, flint-libsbml, flint-sundials, 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; let
flint-soslib = stdenv.mkDerivation {
pname = "flint-soslib";
version = "1.9.0.0";
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ pkg-config libxml2 flint-libsbml.packages.${system}.default flint-sundials.packages.${system}.default ];
checkInputs = [ check ];
src = soslib;
patches = [
./patches/makefile-am.patch
./patches/CVDlsDenseJacFn-IDADlsDenseJacFn-long-int.patch
];
configureFlags = [
# "--enable-unittest"
"--with-libsbml=${flint-libsbml}"
"--with-sundials=${flint-sundials}"
];
# doCheck = true;
enableParallelBuilding = true;
};
in {
default = flint-soslib;
});
};
}