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
{ lib, stdenv, fetchurl, cln, pkg-config, readline, gmp, python3 }:
2
3
stdenv.mkDerivation rec {
4
-
name = "ginac-1.8.1";
0
5
6
src = fetchurl {
7
-
url = "${meta.homepage}/${name}.tar.bz2";
8
sha256 = "sha256-8WldvWsYcGHvP7pQdkjJ1tukOPczsFjBb5J4y9z14as=";
9
};
10
11
propagatedBuildInputs = [ cln ];
12
13
-
buildInputs = [ readline ] ++ lib.optional stdenv.isDarwin gmp;
0
14
15
nativeBuildInputs = [ pkg-config python3 ];
16
17
strictDeps = true;
18
19
-
preConfigure = "patchShebangs ginsh";
0
0
20
21
configureFlags = [ "--disable-rpath" ];
22
23
meta = with lib; {
24
description = "GiNaC is Not a CAS";
25
-
homepage = "https://www.ginac.de/";
26
maintainers = with maintainers; [ lovek323 ];
27
license = licenses.gpl2;
28
-
platforms = platforms.all;
29
};
30
}
···
1
{ lib, stdenv, fetchurl, cln, pkg-config, readline, gmp, python3 }:
2
3
stdenv.mkDerivation rec {
4
+
pname = "ginac";
5
+
version = "1.8.1";
6
7
src = fetchurl {
8
+
url = "https://www.ginac.de/ginac-${version}.tar.bz2";
9
sha256 = "sha256-8WldvWsYcGHvP7pQdkjJ1tukOPczsFjBb5J4y9z14as=";
10
};
11
12
propagatedBuildInputs = [ cln ];
13
14
+
buildInputs = [ readline ]
15
+
++ lib.optional stdenv.isDarwin gmp;
16
17
nativeBuildInputs = [ pkg-config python3 ];
18
19
strictDeps = true;
20
21
+
preConfigure = ''
22
+
patchShebangs ginsh
23
+
'';
24
25
configureFlags = [ "--disable-rpath" ];
26
27
meta = with lib; {
28
description = "GiNaC is Not a CAS";
29
+
homepage = "https://www.ginac.de/";
30
maintainers = with maintainers; [ lovek323 ];
31
license = licenses.gpl2;
32
+
platforms = platforms.all;
33
};
34
}