ginac: switch to pname + version, cleanup

+10 -6
+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"; 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; 14 15 nativeBuildInputs = [ pkg-config python3 ]; 16 17 strictDeps = true; 18 19 - preConfigure = "patchShebangs ginsh"; 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 }