forked from mirrors/nixpkgs
Merge pull request #45008 from jbaum98/gfan-darwin
gfan: Add darwin support
This commit is contained in:
commit
d6b9ab6865
|
@ -9,15 +9,20 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
|
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = ''PREFIX=$(out) CC=cc CXX=c++ cddnoprefix=1'';
|
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
buildInputs = [gmp mpir cddlib];
|
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildFlags = [ "CC=cc" "CXX=c++" "cddnoprefix=1" ];
|
||||||
|
installFlags = [ ''PREFIX=$(out)'' ];
|
||||||
|
buildInputs = [ gmp mpir cddlib ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = ''A software package for computing Gröbner fans and tropical varieties'';
|
description = ''A software package for computing Gröbner fans and tropical varieties'';
|
||||||
license = stdenv.lib.licenses.gpl2 ;
|
license = stdenv.lib.licenses.gpl2 ;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
homepage = http://home.math.au.dk/jensen/software/gfan/gfan.html;
|
homepage = http://home.math.au.dk/jensen/software/gfan/gfan.html;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
||||||
description = ''An implementation of the Double Description Method for generating all vertices of a convex polyhedron'';
|
description = ''An implementation of the Double Description Method for generating all vertices of a convex polyhedron'';
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [raskin timokau];
|
maintainers = with maintainers; [raskin timokau];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
homepage = https://www.inf.ethz.ch/personal/fukudak/cdd_home/index.html;
|
homepage = https://www.inf.ethz.ch/personal/fukudak/cdd_home/index.html;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue