tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
gfan: Add darwin support
Jake Waksbaum
7 years ago
be81e1e2
4c0e2508
+10
-5
3 changed files
expand all
collapse all
unified
split
pkgs
applications
science
math
gfan
default.nix
development
libraries
cddlib
default.nix
mpir
default.nix
+8
-3
pkgs/applications/science/math/gfan/default.nix
reviewed
···
9
9
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
10
10
};
11
11
12
12
-
makeFlags = ''PREFIX=$(out) CC=cc CXX=c++ cddnoprefix=1'';
13
13
-
buildInputs = [gmp mpir cddlib];
12
12
+
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
13
13
+
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
14
14
+
'';
15
15
+
16
16
+
buildFlags = [ "CC=cc" "CXX=c++" "cddnoprefix=1" ];
17
17
+
installFlags = [ ''PREFIX=$(out)'' ];
18
18
+
buildInputs = [ gmp mpir cddlib ];
14
19
15
20
meta = {
16
21
inherit version;
17
22
description = ''A software package for computing Gröbner fans and tropical varieties'';
18
23
license = stdenv.lib.licenses.gpl2 ;
19
24
maintainers = [stdenv.lib.maintainers.raskin];
20
20
-
platforms = stdenv.lib.platforms.linux;
25
25
+
platforms = stdenv.lib.platforms.unix;
21
26
homepage = http://home.math.au.dk/jensen/software/gfan/gfan.html;
22
27
};
23
28
}
+1
-1
pkgs/development/libraries/cddlib/default.nix
reviewed
···
27
27
description = ''An implementation of the Double Description Method for generating all vertices of a convex polyhedron'';
28
28
license = licenses.gpl2Plus;
29
29
maintainers = with maintainers; [raskin timokau];
30
30
-
platforms = platforms.linux;
30
30
+
platforms = platforms.unix;
31
31
homepage = https://www.inf.ethz.ch/personal/fukudak/cdd_home/index.html;
32
32
};
33
33
}
+1
-1
pkgs/development/libraries/mpir/default.nix
reviewed
···
18
18
description = ''A highly optimised library for bignum arithmetic forked from GMP'';
19
19
license = stdenv.lib.licenses.lgpl3Plus;
20
20
maintainers = [stdenv.lib.maintainers.raskin];
21
21
-
platforms = stdenv.lib.platforms.linux;
21
21
+
platforms = stdenv.lib.platforms.unix;
22
22
downloadPage = "http://mpir.org/downloads.html";
23
23
homepage = http://mpir.org/;
24
24
updateWalker = true;