2010-09-28 17:40:34 +01:00
|
|
|
{stdenv, fetchurl, zlib, attr}:
|
2006-09-08 16:19:43 +01:00
|
|
|
|
2009-06-05 14:52:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-09-28 17:40:34 +01:00
|
|
|
name = "squashfs-4.1";
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2006-09-08 16:19:43 +01:00
|
|
|
src = fetchurl {
|
2010-09-28 17:40:34 +01:00
|
|
|
url = mirror://sourceforge/squashfs/squashfs4.1.tar.gz;
|
|
|
|
sha256 = "0sh40r7gz81fg7ivgr7rld8spvqb6hsfvnf6gd3gbcr5b830v1rs";
|
2006-09-08 16:19:43 +01:00
|
|
|
};
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2010-09-28 17:40:34 +01:00
|
|
|
buildInputs = [zlib attr];
|
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
|
|
|
}
|