mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
185a92ba6c
https://hydra.nixos.org/build/276515695
(cherry picked from commit 750db54bfc
)
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib, fileset
|
|
, stdenv
|
|
, perl, perlPackages
|
|
, autoconf-archive, autoreconfHook, pkg-config
|
|
, nix, curl, bzip2, xz, boost, libsodium, darwin
|
|
}:
|
|
|
|
perl.pkgs.toPerlModule (stdenv.mkDerivation {
|
|
name = "nix-perl-${nix.version}";
|
|
|
|
src = fileset.toSource {
|
|
root = ../.;
|
|
fileset = fileset.unions [
|
|
../.version
|
|
../m4
|
|
../mk
|
|
./MANIFEST
|
|
./Makefile
|
|
./Makefile.config.in
|
|
./configure.ac
|
|
./lib
|
|
./local.mk
|
|
];
|
|
};
|
|
|
|
nativeBuildInputs =
|
|
[ autoconf-archive
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[ nix
|
|
curl
|
|
bzip2
|
|
xz
|
|
perl
|
|
boost
|
|
]
|
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security
|
|
++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.libs.sandbox;
|
|
|
|
configureFlags = [
|
|
"--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
|
"--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
})
|