2012-01-20 21:43:50 +04:00
|
|
|
{ stdenv, fetchurl, zlib, xz }:
|
2006-09-08 19:19:43 +04:00
|
|
|
|
2009-06-05 17:52:24 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2012-01-20 21:43:50 +04:00
|
|
|
name = "squashfs-4.2";
|
2009-04-23 17:31:10 +04:00
|
|
|
|
2006-09-08 19:19:43 +04:00
|
|
|
src = fetchurl {
|
2012-01-20 21:43:50 +04:00
|
|
|
url = mirror://sourceforge/squashfs/squashfs4.2.tar.gz;
|
|
|
|
sha256 = "15if08j0pl5hmnz9pwshwrp4fjp0jsm9larjxmjvdnr2m5d1kq6r";
|
2006-09-08 19:19:43 +04:00
|
|
|
};
|
2013-04-12 17:25:53 +04:00
|
|
|
|
2012-01-20 21:43:50 +04:00
|
|
|
buildInputs = [ zlib xz ];
|
2009-04-23 17:31:10 +04:00
|
|
|
|
2012-01-20 21:43:50 +04:00
|
|
|
preBuild = "cd squashfs-tools";
|
2013-04-12 17:25:53 +04:00
|
|
|
|
2009-06-10 17:29:12 +04:00
|
|
|
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
|
|
|
|
|
2009-06-05 17:52:24 +04:00
|
|
|
installFlags = "INSTALL_DIR=\${out}/bin";
|
2013-04-12 17:25:53 +04:00
|
|
|
|
2011-01-17 22:41:05 +03:00
|
|
|
makeFlags = "XZ_SUPPORT=1";
|
2013-04-12 17:25:53 +04:00
|
|
|
|
2009-06-05 17:52:24 +04:00
|
|
|
meta = {
|
|
|
|
homepage = http://squashfs.sourceforge.net/;
|
|
|
|
description = "Tool for creating and unpacking squashfs filesystems";
|
|
|
|
};
|
2006-09-08 19:19:43 +04:00
|
|
|
}
|