diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix b/nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix new file mode 100644 index 000000000000..0796a0914f1f --- /dev/null +++ b/nixpkgs/pkgs/tools/package-management/nix/nix-perl.nix @@ -0,0 +1,43 @@ +{ 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"; +} |