mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
856f3a46b2
and the associated obsolete functions
support for log nesting was removed in 2017 6669a3b477
44 lines
769 B
Nix
44 lines
769 B
Nix
{ stdenv
|
|
, lib
|
|
, perl
|
|
, pkg-config
|
|
, curl
|
|
, nix
|
|
, libsodium
|
|
, boost
|
|
, autoreconfHook
|
|
, autoconf-archive
|
|
, nlohmann_json
|
|
, Security
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "nix-perl";
|
|
inherit (nix) version src;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
|
|
buildInputs = lib.optional (stdenv.isDarwin) Security;
|
|
|
|
# This is not cross-compile safe, don't have time to fix right now
|
|
# but noting for future travellers.
|
|
nativeBuildInputs = [
|
|
autoconf-archive
|
|
autoreconfHook
|
|
boost
|
|
curl
|
|
libsodium
|
|
nix
|
|
nlohmann_json
|
|
perl
|
|
pkg-config
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-dbi=${perl.pkgs.DBI}/${perl.libPrefix}"
|
|
"--with-dbd-sqlite=${perl.pkgs.DBDSQLite}/${perl.libPrefix}"
|
|
];
|
|
|
|
preConfigure = "export NIX_STATE_DIR=$TMPDIR";
|
|
}
|