Skip to content

Commit

Permalink
libpsl: make python both a build and runtime dependency
Browse files Browse the repository at this point in the history
Previously, python3 was only provided as a nativeBuildInput. However,
libpsl.bin distributes python scripts. To make them use the right
python, provide python as a buildInput and specify which python to
use at build time with a configure flag.
  • Loading branch information
rhelmot committed Jul 20, 2024
1 parent 8914dc8 commit feabbe8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libpsl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, libxslt
, pkg-config
, python3
, buildPackages
, valgrind
, publicsuffix-list
}:
Expand All @@ -33,14 +34,14 @@ stdenv.mkDerivation rec {
gtk-doc
lzip
pkg-config
python3
libxslt
];

buildInputs = [
libidn2
libunistring
libxslt
python3
];

propagatedBuildInputs = [
Expand All @@ -61,6 +62,7 @@ stdenv.mkDerivation rec {
"--with-psl-distfile=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
"--with-psl-file=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
"--with-psl-testfile=${publicsuffix-list}/share/publicsuffix/test_psl.txt"
"PYTHON=${lib.getExe buildPackages.python3}"
];

enableParallelBuilding = true;
Expand Down

0 comments on commit feabbe8

Please sign in to comment.