lz4: pick upstream fix for Darwin, move to pname
This commit is contained in:
parent
8bd018bc19
commit
1b0cd28a51
|
@ -1,18 +1,26 @@
|
||||||
{ stdenv, fetchFromGitHub, valgrind
|
{ stdenv, fetchFromGitHub, valgrind, fetchpatch
|
||||||
, enableStatic ? false, enableShared ? true
|
, enableStatic ? false, enableShared ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lz4-${version}";
|
pname = "lz4";
|
||||||
version = "1.9.1";
|
version = "1.9.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "1l1caxrik1hqs40vj3bpv1pikw6b74cfazv5c0v6g48zpcbmshl0";
|
sha256 = "1l1caxrik1hqs40vj3bpv1pikw6b74cfazv5c0v6g48zpcbmshl0";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "lz4";
|
repo = pname;
|
||||||
owner = "lz4";
|
owner = pname;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix detection of Darwin
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/lz4/lz4/commit/024216ef7394b6411eeaa5b52d0cec9953a44249.patch";
|
||||||
|
sha256 = "0j0j2pr6pkplxf083hlwl5q4cfp86q3wd8mc64bcfcr7ysc5pzl3";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional doCheck valgrind;
|
buildInputs = stdenv.lib.optional doCheck valgrind;
|
||||||
|
|
Loading…
Reference in New Issue