nixpkgs/pkgs/tools/filesystems/squashfs/default.nix

34 lines
800 B
Nix
Raw Normal View History

2016-09-13 01:08:09 +02:00
{ stdenv, fetchFromGitHub, zlib, xz
, lz4 ? null
, lz4Support ? false
}:
assert lz4Support -> (lz4 != null);
stdenv.mkDerivation rec {
name = "squashfs-4.4dev";
2016-09-12 23:11:37 +02:00
src = fetchFromGitHub {
owner = "plougher";
repo = "squashfs-tools";
sha256 = "059pa2shdysr3zfmwrhq28s12zbi5nyzbpzyaf5lmspgfh1493ks";
rev = "9c1db6d13a51a2e009f0027ef336ce03624eac0d";
};
2013-04-12 15:25:53 +02:00
2016-09-13 01:08:09 +02:00
buildInputs = [ zlib xz ]
++ stdenv.lib.optional lz4Support lz4;
preBuild = "cd squashfs-tools";
2013-04-12 15:25:53 +02:00
installFlags = "INSTALL_DIR=\${out}/bin";
2013-04-12 15:25:53 +02:00
2016-09-13 01:08:09 +02:00
makeFlags = [ "XZ_SUPPORT=1" ]
++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1";
2013-04-12 15:25:53 +02:00
meta = {
homepage = http://squashfs.sourceforge.net/;
description = "Tool for creating and unpacking squashfs filesystems";
platforms = stdenv.lib.platforms.linux;
};
}