2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-10-16 20:44:37 +00:00
|
|
|
, fetchurl
|
2021-12-06 16:07:01 +00:00
|
|
|
, pari
|
|
|
|
, perl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gp2c";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.0.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pari.math.u-bordeaux.fr/pub/pari/GP2C/${pname}-${version}.tar.gz";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-JhN07Kc+vXbBEqlZPcootkgSqnYlYf2lpLLCzXmmnTY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
pari
|
|
|
|
perl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-paricfg=${pari}/lib/pari/pari.cfg"
|
2021-12-06 16:07:01 +00:00
|
|
|
"--with-perl=${perl}/bin/perl"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "http://pari.math.u-bordeaux.fr/";
|
2022-09-30 11:47:45 +00:00
|
|
|
description = "A compiler to translate GP scripts to PARI programs";
|
2020-04-24 23:36:52 +00:00
|
|
|
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
|
2022-09-30 11:47:45 +00:00
|
|
|
inherit (pari.meta) license maintainers platforms broken;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|