nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

gfan: Add darwin support

+10 -5
+8 -3
pkgs/applications/science/math/gfan/default.nix
··· 9 9 sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56"; 10 10 }; 11 11 12 - makeFlags = ''PREFIX=$(out) CC=cc CXX=c++ cddnoprefix=1''; 13 - buildInputs = [gmp mpir cddlib]; 12 + patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' 13 + substituteInPlace Makefile --replace "-fno-guess-branch-probability" "" 14 + ''; 15 + 16 + buildFlags = [ "CC=cc" "CXX=c++" "cddnoprefix=1" ]; 17 + installFlags = [ ''PREFIX=$(out)'' ]; 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 - platforms = stdenv.lib.platforms.linux; 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
··· 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 - platforms = platforms.linux; 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
··· 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 - platforms = stdenv.lib.platforms.linux; 21 + platforms = stdenv.lib.platforms.unix; 22 22 downloadPage = "http://mpir.org/downloads.html"; 23 23 homepage = http://mpir.org/; 24 24 updateWalker = true;