2006-09-08 16:19:43 +01:00
|
|
|
{stdenv, fetchurl, zlib}:
|
|
|
|
|
2009-06-05 14:52:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "squashfs-4.0";
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2006-09-08 16:19:43 +01:00
|
|
|
src = fetchurl {
|
2009-06-05 14:52:24 +01:00
|
|
|
url = mirror://sourceforge/squashfs/squashfs4.0.tar.gz;
|
|
|
|
sha256 = "089fw543fx2d3dadszjv5swf8hr6jvxrpagf0x1jrb3bw3dqx50q";
|
2006-09-08 16:19:43 +01:00
|
|
|
};
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2006-09-08 16:19:43 +01:00
|
|
|
buildInputs = [zlib];
|
2009-04-23 14:31:10 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd squashfs-tools
|
|
|
|
'';
|
|
|
|
|
2009-06-10 14:29:12 +01:00
|
|
|
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
|
|
|
|
|
2009-06-05 14:52:24 +01:00
|
|
|
installFlags = "INSTALL_DIR=\${out}/bin";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://squashfs.sourceforge.net/;
|
|
|
|
description = "Tool for creating and unpacking squashfs filesystems";
|
|
|
|
};
|
2006-09-08 16:19:43 +01:00
|
|
|
}
|