Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 767 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pari, 6 perl, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "gp2c"; 11 version = "0.0.14"; 12 13 src = fetchurl { 14 url = "https://pari.math.u-bordeaux.fr/pub/pari/GP2C/${pname}-${version}.tar.gz"; 15 hash = "sha256-r2ESzAKUBFfiOdpEM9Gg2Npg7u8p98xyL2TNSsALezA="; 16 }; 17 18 buildInputs = [ 19 pari 20 perl 21 ]; 22 23 configureFlags = [ 24 "--with-paricfg=${pari}/lib/pari/pari.cfg" 25 "--with-perl=${perl}/bin/perl" 26 ]; 27 28 meta = with lib; { 29 homepage = "http://pari.math.u-bordeaux.fr/"; 30 description = "Compiler to translate GP scripts to PARI programs"; 31 downloadPage = "http://pari.math.u-bordeaux.fr/download.html"; 32 inherit (pari.meta) 33 license 34 maintainers 35 teams 36 platforms 37 broken 38 ; 39 }; 40}