2024-03-27 20:34:10 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fileset,
|
|
|
|
stdenv,
|
|
|
|
perl,
|
|
|
|
perlPackages,
|
|
|
|
autoconf-archive,
|
|
|
|
autoreconfHook,
|
|
|
|
pkg-config,
|
|
|
|
nix,
|
|
|
|
curl,
|
|
|
|
bzip2,
|
|
|
|
xz,
|
|
|
|
boost,
|
|
|
|
libsodium,
|
|
|
|
darwin,
|
2024-03-04 04:37:44 +01:00
|
|
|
}:
|
2024-03-27 20:34:10 +01:00
|
|
|
perl.pkgs.toPerlModule (
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nix-perl-${nix.version}";
|
2024-03-04 04:37:44 +01:00
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
src = fileset.toSource {
|
|
|
|
root = ../.;
|
|
|
|
fileset = fileset.unions [
|
|
|
|
../.version
|
|
|
|
../m4
|
|
|
|
../mk
|
|
|
|
./MANIFEST
|
|
|
|
./Makefile
|
|
|
|
./Makefile.config.in
|
|
|
|
./configure.ac
|
|
|
|
./lib
|
|
|
|
./local.mk
|
|
|
|
];
|
|
|
|
};
|
2024-03-04 04:37:44 +01:00
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf-archive
|
2024-03-04 04:37:44 +01:00
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
nix
|
|
|
|
curl
|
|
|
|
bzip2
|
|
|
|
xz
|
|
|
|
perl
|
|
|
|
boost
|
|
|
|
]
|
|
|
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2024-03-04 04:37:44 +01:00
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
|
|
|
"--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
|
|
|
|
];
|
2024-03-04 04:37:44 +01:00
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
enableParallelBuilding = true;
|
2024-03-04 04:37:44 +01:00
|
|
|
|
2024-03-27 20:34:10 +01:00
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
|
|
}
|
|
|
|
)
|