pari: slight refactoring
Use pname, one line per argument.
This commit is contained in:
parent
2a5993d617
commit
5a23cb575e
@ -1,17 +1,21 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv
|
||||||
, gmp, readline, libX11, tex, perl
|
, fetchurl
|
||||||
|
, gmp
|
||||||
|
, readline
|
||||||
|
, libX11
|
||||||
|
, tex
|
||||||
|
, perl
|
||||||
, withThread ? true, libpthreadstubs
|
, withThread ? true, libpthreadstubs
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert withThread -> libpthreadstubs != null;
|
assert withThread -> libpthreadstubs != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "pari";
|
||||||
name = "pari-${version}";
|
|
||||||
version = "2.11.1";
|
version = "2.11.1";
|
||||||
|
|
||||||
src = fetchurl {
|
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";
|
sha256 = "1jfax92jpydjd02fwl30r6b8kfzqqd6sm4yx94gidyz9lqjb7a94";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user