diff options
author | Jake Waksbaum <jake.waksbaum@gmail.com> | 2018-08-09 16:28:27 -0400 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-09 22:28:27 +0200 |
commit | 3babbaaa47825a98152adfec7baab4bf860a3159 (patch) | |
tree | b5e615f0f79ad2e468087b79aed4034dd05d4339 /pkgs/applications | |
parent | d64073c770221a45e579a46cd832123f6308c7ad (diff) | |
download | nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar.gz nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar.bz2 nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar.lz nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar.xz nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.tar.zst nixlib-3babbaaa47825a98152adfec7baab4bf860a3159.zip |
palp: Add darwin support (#44829)
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/science/math/palp/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/palp/default.nix b/pkgs/applications/science/math/palp/default.nix index 4c7df4412e4f..e9fd21b46d8a 100644 --- a/pkgs/applications/science/math/palp/default.nix +++ b/pkgs/applications/science/math/palp/default.nix @@ -19,6 +19,10 @@ stdenv.mkDerivation rec { "strictoverflow" # causes runtime failure (tested in checkPhase) ]; + patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace GNUmakefile --replace gcc cc + ''; + preBuild = '' echo Building PALP optimized for ${dim} dimensions sed -i "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax ${dim}/" Global.h @@ -77,6 +81,6 @@ stdenv.mkDerivation rec { # the right license. license = licenses.gpl2; maintainers = with maintainers; [ timokau ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |