diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-10-15 22:08:23 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-10-15 22:08:23 +0000 |
commit | ffe3d659862801466002ed710405b89df7230f43 (patch) | |
tree | 6da5a0d1bf9b15efd80201ecdcff5ad59844899c /pkgs/development/perl-modules/DB_File | |
parent | 9dced990134486550cf0b6b5604c7f26d1208453 (diff) | |
download | nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar.gz nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar.bz2 nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar.lz nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar.xz nixpkgs-ffe3d659862801466002ed710405b89df7230f43.tar.zst nixpkgs-ffe3d659862801466002ed710405b89df7230f43.zip |
Making perl DB_File follow the lib/perl5/site_perl convention for the *.pm files,
so all hooks on PERL5LIB include this module properly. I don't know why this doesn't install the files to that */site_perl/* by default. svn path=/nixpkgs/trunk/; revision=17837
Diffstat (limited to 'pkgs/development/perl-modules/DB_File')
-rw-r--r-- | pkgs/development/perl-modules/DB_File/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/development/perl-modules/DB_File/default.nix b/pkgs/development/perl-modules/DB_File/default.nix index 2a344e392fe..adf66a44806 100644 --- a/pkgs/development/perl-modules/DB_File/default.nix +++ b/pkgs/development/perl-modules/DB_File/default.nix @@ -1,11 +1,11 @@ {fetchurl, buildPerlPackage, db4}: buildPerlPackage { - name = "DB_File-1.816"; + name = "DB_File-1.820"; src = fetchurl { - url = mirror://cpan/authors/id/P/PM/PMQS/DB_File-1.816.tar.gz; - sha256 = "1a668hk5v0l180kbqss2hq9khl756cmrykn8fz1rl4qzsp6lq284"; + url = mirror://cpan/authors/id/P/PM/PMQS/DB_File-1.820.tar.gz; + sha256 = "0jnz5lsrad67j42sdw5bqpkmgiyj45rpiqgkff3i21252k9d5s7a"; }; preConfigure = '' @@ -16,4 +16,12 @@ buildPerlPackage { INCLUDE = ${db4}/include EOF ''; + + # I don't know about perl paths, but PERL5LIB env var is managed through + # lib/perl5/site_perl, and the *.pm should be inside lib/perl5/site_perl/... + # for other packages to get that in the PERL5LIB env var. + postInstall = '' + ensureDir $out/lib/perl5/site_perl/ + cp -R $out/lib/perl5/5* $out/lib/perl5/site_perl + ''; } |