Skip to content

Commit

Permalink
Merge pull request #335458 from Mic92/libpsl
Browse files Browse the repository at this point in the history
libpsl: fix static build (fixes nixStatic)
  • Loading branch information
philiptaron authored Aug 17, 2024
2 parents ae1a832 + 42132a8 commit 2b875be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/development/libraries/libpsl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
'';

Expand Down

0 comments on commit 2b875be

Please sign in to comment.