nixpkgs/pkgs/tools/filesystems/squashfs/default.nix
Rob Vermaas b7f536027d enable lzma support in squashfs-tools
svn path=/nixpkgs/trunk/; revision=25602
2011-01-17 19:41:05 +00:00

27 lines
609 B
Nix

{stdenv, fetchurl, zlib, attr, xz}:
stdenv.mkDerivation rec {
name = "squashfs-4.1";
src = fetchurl {
url = mirror://sourceforge/squashfs/squashfs4.1.tar.gz;
sha256 = "0sh40r7gz81fg7ivgr7rld8spvqb6hsfvnf6gd3gbcr5b830v1rs";
};
buildInputs = [zlib attr xz];
preBuild = ''
cd squashfs-tools
'';
IUSE="+gzip +lzma";
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
installFlags = "INSTALL_DIR=\${out}/bin";
makeFlags = "XZ_SUPPORT=1";
meta = {
homepage = http://squashfs.sourceforge.net/;
description = "Tool for creating and unpacking squashfs filesystems";
};
}