Unverified Commit 2b875be1 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

Merge pull request #335458 from Mic92/libpsl

libpsl: fix static build (fixes nixStatic)
parents ae1a8329 42132a88
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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
  '';