nix.perl-bindings: add passthru.perlModule
... so it can be used in `perl.withPackages`
This commit is contained in:
parent
7d252394cc
commit
be6458dce3
@ -11,7 +11,7 @@ let
|
|||||||
common =
|
common =
|
||||||
{ lib, stdenv, perl, curl, bzip2, sqlite, openssl ? null, xz
|
{ lib, stdenv, perl, curl, bzip2, sqlite, openssl ? null, xz
|
||||||
, bash, coreutils, util-linuxMinimal, gzip, gnutar
|
, bash, coreutils, util-linuxMinimal, gzip, gnutar
|
||||||
, pkg-config, boehmgc, perlPackages, libsodium, brotli, boost, editline, nlohmann_json
|
, pkg-config, boehmgc, libsodium, brotli, boost, editline, nlohmann_json
|
||||||
, autoreconfHook, autoconf-archive, bison, flex
|
, autoreconfHook, autoconf-archive, bison, flex
|
||||||
, jq, libarchive, libcpuid
|
, jq, libarchive, libcpuid
|
||||||
, lowdown, mdbook
|
, lowdown, mdbook
|
||||||
@ -165,7 +165,7 @@ common =
|
|||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
perl-bindings = stdenv.mkDerivation {
|
perl-bindings = perl.pkgs.toPerlModule (stdenv.mkDerivation {
|
||||||
pname = "nix-perl";
|
pname = "nix-perl";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
@ -179,14 +179,14 @@ common =
|
|||||||
[ perl pkg-config curl nix libsodium boost autoreconfHook autoconf-archive nlohmann_json ];
|
[ perl pkg-config curl nix libsodium boost autoreconfHook autoconf-archive nlohmann_json ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
[ "--with-dbi=${perl.pkgs.DBI}/${perl.libPrefix}"
|
||||||
"--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
|
"--with-dbd-sqlite=${perl.pkgs.DBDSQLite}/${perl.libPrefix}"
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = "export NIX_STATE_DIR=$TMPDIR";
|
preConfigure = "export NIX_STATE_DIR=$TMPDIR";
|
||||||
|
|
||||||
preBuild = "unset NIX_INDENT_MAKE";
|
preBuild = "unset NIX_INDENT_MAKE";
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in nix;
|
in nix;
|
||||||
|
Loading…
Reference in New Issue
Block a user