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