Merge pull request #335458 from Mic92/libpsl

libpsl: fix static build (fixes nixStatic)
This commit is contained in:
Philip Taron 2024-08-17 16:42:24 -07:00 committed by GitHub
commit 2b875be1ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
}; };
# bin/psl-make-dafsa brings a large runtime closure through python3 # bin/psl-make-dafsa brings a large runtime closure through python3
outputs = [ "bin" "out" "dev" ]; outputs = lib.optional (!stdenv.hostPlatform.isStatic) "bin" ++ [ "out" "dev" ];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
@ -40,14 +40,13 @@ stdenv.mkDerivation rec {
libidn2 libidn2
libunistring libunistring
libxslt libxslt
python3 ] ++ lib.optional (!stdenv.hostPlatform.isStatic) python3;
];
propagatedBuildInputs = [ propagatedBuildInputs = [
publicsuffix-list publicsuffix-list
]; ];
postPatch = '' postPatch = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
patchShebangs src/psl-make-dafsa patchShebangs src/psl-make-dafsa
''; '';