pari: slight refactoring

Use pname, one line per argument.
This commit is contained in:
Timo Kaufmann 2019-03-05 20:21:26 +01:00
parent 2a5993d617
commit 5a23cb575e

View File

@ -1,17 +1,21 @@
{ stdenv, fetchurl
, gmp, readline, libX11, tex, perl
{ stdenv
, fetchurl
, gmp
, readline
, libX11
, tex
, perl
, withThread ? true, libpthreadstubs
}:
assert withThread -> libpthreadstubs != null;
stdenv.mkDerivation rec {
name = "pari-${version}";
pname = "pari";
version = "2.11.1";
src = fetchurl {
url = "https://pari.math.u-bordeaux.fr/pub/pari/unix/${name}.tar.gz";
url = "https://pari.math.u-bordeaux.fr/pub/pari/unix/${pname}-${version}.tar.gz";
sha256 = "1jfax92jpydjd02fwl30r6b8kfzqqd6sm4yx94gidyz9lqjb7a94";
};