mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
45 lines
744 B
Nix
45 lines
744 B
Nix
{ stdenv
|
|
, perl
|
|
, pkg-config
|
|
, curl
|
|
, nix
|
|
, libsodium
|
|
, boost
|
|
, autoreconfHook
|
|
, autoconf-archive
|
|
, nlohmann_json
|
|
|
|
, version
|
|
, src
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "nix-perl";
|
|
inherit version src;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
|
|
# 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";
|
|
|
|
preBuild = "unset NIX_INDENT_MAKE";
|
|
}
|