3
0
Fork 0
forked from mirrors/nixpkgs

* net-snmp: enable Perl support.

svn path=/nixpkgs/trunk/; revision=34424
This commit is contained in:
Eelco Dolstra 2012-06-10 17:06:35 +00:00
parent 1697485678
commit c9f95fa0c2

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, file, openssl }:
{ stdenv, fetchurl, file, openssl, perl }:
stdenv.mkDerivation rec {
name = "net-snmp-5.7.1";
@ -8,6 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "07qqdgs3flraqccwry4a4x23jcg6vfi0rqj7clsibdv51ijwjwbw";
};
preConfigure =
''
perlversion=$(perl -e 'use Config; print $Config{version};')
perlarchname=$(perl -e 'use Config; print $Config{archname};')
installFlags="INSTALLSITEARCH=$out/lib/perl5/site_perl/$perlversion/$perlarchname INSTALLSITEMAN3DIR=$out/share/man/man3"
'';
configureFlags =
[ "--with-default-snmp-version=3"
"--with-sys-location=Unknown"
@ -16,7 +23,7 @@ stdenv.mkDerivation rec {
"--with-persistent-directory=/var/lib/net-snmp"
];
buildInputs = [ file openssl ];
buildInputs = [ file openssl perl ];
enableParallelBuilding = true;