tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ginac: switch to pname + version, cleanup
Sandro Jäckel
4 years ago
026fb184
965c1c56
+10
-6
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
math
ginac
default.nix
+10
-6
pkgs/applications/science/math/ginac/default.nix
···
1
1
{ lib, stdenv, fetchurl, cln, pkg-config, readline, gmp, python3 }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
name = "ginac-1.8.1";
4
4
+
pname = "ginac";
5
5
+
version = "1.8.1";
5
6
6
7
src = fetchurl {
7
7
-
url = "${meta.homepage}/${name}.tar.bz2";
8
8
+
url = "https://www.ginac.de/ginac-${version}.tar.bz2";
8
9
sha256 = "sha256-8WldvWsYcGHvP7pQdkjJ1tukOPczsFjBb5J4y9z14as=";
9
10
};
10
11
11
12
propagatedBuildInputs = [ cln ];
12
13
13
13
-
buildInputs = [ readline ] ++ lib.optional stdenv.isDarwin gmp;
14
14
+
buildInputs = [ readline ]
15
15
+
++ lib.optional stdenv.isDarwin gmp;
14
16
15
17
nativeBuildInputs = [ pkg-config python3 ];
16
18
17
19
strictDeps = true;
18
20
19
19
-
preConfigure = "patchShebangs ginsh";
21
21
+
preConfigure = ''
22
22
+
patchShebangs ginsh
23
23
+
'';
20
24
21
25
configureFlags = [ "--disable-rpath" ];
22
26
23
27
meta = with lib; {
24
28
description = "GiNaC is Not a CAS";
25
25
-
homepage = "https://www.ginac.de/";
29
29
+
homepage = "https://www.ginac.de/";
26
30
maintainers = with maintainers; [ lovek323 ];
27
31
license = licenses.gpl2;
28
28
-
platforms = platforms.all;
32
32
+
platforms = platforms.all;
29
33
};
30
34
}