mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #335458 from Mic92/libpsl
libpsl: fix static build (fixes nixStatic)
This commit is contained in:
commit
2b875be1ab
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user