perlPackages.PDL: init at 2.022

This commit is contained in:
Souvik Sen 2020-04-09 13:18:10 -04:00 committed by Souvik Sen
parent 7a27aefc1c
commit fb1ff72f74

View File

@ -15646,6 +15646,51 @@ let
};
};
PDL = buildPerlPackage rec {
pname = "PDL";
version = "2.022";
src = fetchurl {
url = "mirror://cpan/authors/id/E/ET/ETJ/${pname}-${version}.tar.gz";
sha256 = "12isj05ni44bgf76lc0fs5v88ai8gn5dqrppsbj7vsxblcya7113";
};
patchPhase = ''
substituteInPlace perldl.conf \
--replace 'POSIX_THREADS_LIBS => undef' 'POSIX_THREADS_LIBS => "-L${pkgs.glibc.dev}/lib"' \
--replace 'POSIX_THREADS_INC => undef' 'POSIX_THREADS_INC => "-I${pkgs.glibc.dev}/include"' \
--replace 'WITH_MINUIT => undef' 'WITH_MINUIT => 0' \
--replace 'WITH_SLATEC => undef' 'WITH_SLATEC => 0' \
--replace 'WITH_HDF => undef' 'WITH_HDF => 0' \
--replace 'WITH_GD => undef' 'WITH_GD => 0' \
--replace 'WITH_PROJ => undef' 'WITH_PROJ => 0'
'';
nativeBuildInputs = with pkgs; [ autoPatchelfHook libGL.dev glibc.dev mesa_glu.dev ];
buildInputs = [ DevelChecklib TestDeep TestException TestWarn ] ++
(with pkgs; [ gsl freeglut xorg.libXmu xorg.libXi ]);
propagatedBuildInputs = [
AstroFITSHeader
ConvertUU
ExtUtilsF77
FileMap
Inline
InlineC
ListMoreUtils
ModuleCompile
OpenGL
PodParser
TermReadKey
];
meta = {
homepage = "http://pdl.perl.org/";
description = "Perl Data Language";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
platforms = stdenv.lib.platforms.linux;
};
};
Pegex = buildPerlPackage {
pname = "Pegex";
version = "0.75";