diff options
author | Timo Kaufmann <timokau@zoho.com> | 2018-04-23 19:46:12 +0200 |
---|---|---|
committer | Timo Kaufmann <timokau@zoho.com> | 2018-04-24 12:54:59 +0200 |
commit | 75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874 (patch) | |
tree | ddff6a6dd2afcc8efe6f31df097a09eb62a78a2d /pkgs/applications/science/math/pari/default.nix | |
parent | 62529a693b137c0ea7c1805a6f83205b408fd748 (diff) | |
download | nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar.gz nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar.bz2 nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar.lz nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar.xz nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.tar.zst nixlib-75b0866d0c750e4ef2fe1ed7ee1af9fd32f52874.zip |
pari: Make pthread optional, remove unstable
Diffstat (limited to 'pkgs/applications/science/math/pari/default.nix')
-rw-r--r-- | pkgs/applications/science/math/pari/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/applications/science/math/pari/default.nix b/pkgs/applications/science/math/pari/default.nix index a1ddbd9ab17d..8c24881f2152 100644 --- a/pkgs/applications/science/math/pari/default.nix +++ b/pkgs/applications/science/math/pari/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl -, gmp, readline, libX11, libpthreadstubs, tex, perl }: +, gmp, readline, libX11, tex, perl +, withThread ? true, libpthreadstubs +}: + +assert withThread -> libpthreadstubs != null; stdenv.mkDerivation rec { @@ -11,14 +15,22 @@ stdenv.mkDerivation rec { sha256 = "0ir6m3a8r46md5x6zk4xf159qra7aqparby9zk03k81hjrrxr72g"; }; - buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ]; + buildInputs = [ + gmp + readline + libX11 + tex + perl + ] ++ stdenv.lib.optionals withThread [ + libpthreadstubs + ]; configureScript = "./Configure"; configureFlags = [ - "--mt=pthread" "--with-gmp=${gmp.dev}" "--with-readline=${readline.dev}" - ] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin"; + ] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin" + ++ stdenv.lib.optional withThread "--mt=pthread"; preConfigure = '' export LD=$CC |