add squashfs tools for making/unpacking squashfs images

svn path=/nixpkgs/trunk/; revision=6476
This commit is contained in:
Armijn Hemel 2006-09-08 15:19:43 +00:00
parent 0e0bc82f76
commit 6412133453
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,17 @@
source $stdenv/setup
preBuild() {
cd squashfs-tools
}
preBuild=preBuild
installPhase() {
ensureDir $out/sbin
cp mksquashfs $out/sbin
cp unsquashfs $out/sbin
}
installPhase=installPhase
genericBuild

View file

@ -0,0 +1,11 @@
{stdenv, fetchurl, zlib}:
stdenv.mkDerivation {
name = "squashfs-3.1-r2";
builder = ./builder.sh;
src = fetchurl {
url = http://surfnet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.1-r2.tar.gz;
md5 = "c252e5286b142afa54ca49829c51a33f";
};
buildInputs = [zlib];
}

View file

@ -2088,6 +2088,10 @@ rec {
inherit fetchurl stdenv bash gnused coreutils utillinux gnugrep module_init_tools;
};
squashfsTools = import ../os-specific/linux/squashfs {
inherit fetchurl stdenv zlib;
};
usbutils = import ../os-specific/linux/usbutils {
inherit fetchurl stdenv libusb;
};