add squashfs tools for making/unpacking squashfs images
svn path=/nixpkgs/trunk/; revision=6476
This commit is contained in:
parent
0e0bc82f76
commit
6412133453
3 changed files with 32 additions and 0 deletions
17
pkgs/os-specific/linux/squashfs/builder.sh
Normal file
17
pkgs/os-specific/linux/squashfs/builder.sh
Normal 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
|
11
pkgs/os-specific/linux/squashfs/default.nix
Normal file
11
pkgs/os-specific/linux/squashfs/default.nix
Normal 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];
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue