mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +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
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
outputs = lib.optional (!stdenv.hostPlatform.isStatic) "bin" ++ [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
@ -40,14 +40,13 @@ stdenv.mkDerivation rec {
|
||||
libidn2
|
||||
libunistring
|
||||
libxslt
|
||||
python3
|
||||
];
|
||||
] ++ lib.optional (!stdenv.hostPlatform.isStatic) python3;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
publicsuffix-list
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
postPatch = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
||||
patchShebangs src/psl-make-dafsa
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user