mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
squashfsTools: optional lz4 support
This commit is contained in:
parent
a9fa582c5b
commit
4653160057
@ -1,4 +1,9 @@
|
|||||||
{ stdenv, fetchFromGitHub, zlib, xz }:
|
{ stdenv, fetchFromGitHub, zlib, xz
|
||||||
|
, lz4 ? null
|
||||||
|
, lz4Support ? false
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert lz4Support -> (lz4 != null);
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "squashfs-4.4dev";
|
name = "squashfs-4.4dev";
|
||||||
@ -10,13 +15,15 @@ stdenv.mkDerivation rec {
|
|||||||
rev = "9c1db6d13a51a2e009f0027ef336ce03624eac0d";
|
rev = "9c1db6d13a51a2e009f0027ef336ce03624eac0d";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zlib xz ];
|
buildInputs = [ zlib xz ]
|
||||||
|
++ stdenv.lib.optional lz4Support lz4;
|
||||||
|
|
||||||
preBuild = "cd squashfs-tools";
|
preBuild = "cd squashfs-tools";
|
||||||
|
|
||||||
installFlags = "INSTALL_DIR=\${out}/bin";
|
installFlags = "INSTALL_DIR=\${out}/bin";
|
||||||
|
|
||||||
makeFlags = "XZ_SUPPORT=1";
|
makeFlags = [ "XZ_SUPPORT=1" ]
|
||||||
|
++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://squashfs.sourceforge.net/;
|
homepage = http://squashfs.sourceforge.net/;
|
||||||
|
Loading…
Reference in New Issue
Block a user