3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/squashfs/default.nix

26 lines
570 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, xz }:
stdenv.mkDerivation rec {
name = "squashfs-4.2";
src = fetchurl {
url = mirror://sourceforge/squashfs/squashfs4.2.tar.gz;
sha256 = "15if08j0pl5hmnz9pwshwrp4fjp0jsm9larjxmjvdnr2m5d1kq6r";
};
2013-04-12 14:25:53 +01:00
buildInputs = [ zlib xz ];
preBuild = "cd squashfs-tools";
2013-04-12 14:25:53 +01:00
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
installFlags = "INSTALL_DIR=\${out}/bin";
2013-04-12 14:25:53 +01:00
makeFlags = "XZ_SUPPORT=1";
2013-04-12 14:25:53 +01:00
meta = {
homepage = http://squashfs.sourceforge.net/;
description = "Tool for creating and unpacking squashfs filesystems";
};
}