nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
769 B
Nix
Raw Normal View History

2022-01-25 07:07:22 +00:00
{ stdenv
, lib
2022-01-25 07:07:22 +00:00
, perl
, pkg-config
, curl
, nix
, libsodium
, boost
, autoreconfHook
, autoconf-archive
, nlohmann_json
, Security
2022-01-25 07:07:22 +00:00
}:
stdenv.mkDerivation {
pname = "nix-perl";
inherit (nix) version src;
2022-01-25 07:07:22 +00:00
postUnpack = "sourceRoot=$sourceRoot/perl";
buildInputs = lib.optional (stdenv.isDarwin) Security;
2022-01-25 07:07:22 +00:00
# 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";
}