2011-01-17 11:41:05 -08:00
|
|
|
{stdenv, fetchurl, zlib, attr, xz}:
|
2006-09-08 08:19:43 -07:00
|
|
|
|
2009-06-05 06:52:24 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2010-09-28 09:40:34 -07:00
|
|
|
name = "squashfs-4.1";
|
2009-04-23 06:31:10 -07:00
|
|
|
|
2006-09-08 08:19:43 -07:00
|
|
|
src = fetchurl {
|
2010-09-28 09:40:34 -07:00
|
|
|
url = mirror://sourceforge/squashfs/squashfs4.1.tar.gz;
|
|
|
|
sha256 = "0sh40r7gz81fg7ivgr7rld8spvqb6hsfvnf6gd3gbcr5b830v1rs";
|
2006-09-08 08:19:43 -07:00
|
|
|
};
|
2009-04-23 06:31:10 -07:00
|
|
|
|
2011-01-17 11:41:05 -08:00
|
|
|
buildInputs = [zlib attr xz];
|
2009-04-23 06:31:10 -07:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd squashfs-tools
|
|
|
|
'';
|
2011-01-17 11:41:05 -08:00
|
|
|
IUSE="+gzip +lzma";
|
2009-04-23 06:31:10 -07:00
|
|
|
|
2009-06-10 06:29:12 -07:00
|
|
|
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
|
|
|
|
|
2009-06-05 06:52:24 -07:00
|
|
|
installFlags = "INSTALL_DIR=\${out}/bin";
|
2011-01-17 11:41:05 -08:00
|
|
|
makeFlags = "XZ_SUPPORT=1";
|
2009-06-05 06:52:24 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://squashfs.sourceforge.net/;
|
|
|
|
description = "Tool for creating and unpacking squashfs filesystems";
|
|
|
|
};
|
2006-09-08 08:19:43 -07:00
|
|
|
}
|