Merge pull request #191915 from robx/lz4-static

lz4: fix static build

Changed files
+9 -1
pkgs
tools
compression
+9 -1
pkgs/tools/compression/lz4/default.nix
···
-
{ lib, stdenv, fetchFromGitHub, valgrind
+
{ lib, stdenv, fetchFromGitHub, valgrind, fetchpatch
, enableStatic ? stdenv.hostPlatform.isStatic
, enableShared ? !stdenv.hostPlatform.isStatic
}:
···
repo = pname;
owner = pname;
};
+
+
patches = [
+
(fetchpatch { # https://github.com/lz4/lz4/pull/1162
+
name = "build-shared-no.patch";
+
url = "https://github.com/lz4/lz4/commit/851ef4b23c7cbf4ceb2ba1099666a8b5ec4fa195.patch";
+
sha256 = "sha256-P+/uz3m7EAmHgXF/1Vncc0uKKxNVq6HNIsElx0rGxpw=";
+
})
+
];
# TODO(@Ericson2314): Separate binaries and libraries
outputs = [ "bin" "out" "dev" ];