summary refs log tree commit diff
path: root/pkgs/tools/filesystems/squashfs/default.nix
blob: 5e1700af0178c39b16b59d90f5f35107ca87d12a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchgit, zlib, xz }:

stdenv.mkDerivation rec {
  name = "squashfs-4.4dev";

  src = fetchgit {
    url = https://github.com/plougher/squashfs-tools.git;
    sha256 = "059pa2shdysr3zfmwrhq28s12zbi5nyzbpzyaf5lmspgfh1493ks";
    rev = "9c1db6d13a51a2e009f0027ef336ce03624eac0d";
  };

  buildInputs = [ zlib xz ];

  preBuild = "cd squashfs-tools";

  installFlags = "INSTALL_DIR=\${out}/bin";

  makeFlags = "XZ_SUPPORT=1";

  meta = {
    homepage = http://squashfs.sourceforge.net/;
    description = "Tool for creating and unpacking squashfs filesystems";
    platforms = stdenv.lib.platforms.linux;
  };
}