mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 09:36:15 +02:00
bc08502249
Fix #9859 It's a breaking change but that's fine; we can just update Hydra to use the new bindings.
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib, fileset
|
|
, stdenv
|
|
, perl, perlPackages
|
|
, autoconf-archive, autoreconfHook, pkg-config
|
|
, nix, curl, bzip2, xz, boost, libsodium, darwin
|
|
}:
|
|
|
|
perl.pkgs.toPerlModule (stdenv.mkDerivation (finalAttrs: {
|
|
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
|
|
] ++ lib.optionals finalAttrs.doCheck [
|
|
./.yath.rc
|
|
./t
|
|
]);
|
|
};
|
|
|
|
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;
|
|
|
|
# `perlPackages.Test2Harness` is marked broken for Darwin
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
nativeCheckInputs = [
|
|
perlPackages.Test2Harness
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
|
"--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
}))
|