summary refs log tree commit diff
path: root/pkgs/tools/filesystems/squashfs/default.nix
blob: f66c54cc9e1bdf0b367ae9129e607da71e3fdf79 (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, fetchurl, zlib, xz }:

stdenv.mkDerivation rec {
  name = "squashfs-4.2";

  src = fetchurl {
    url = mirror://sourceforge/squashfs/squashfs4.2.tar.gz;
    sha256 = "15if08j0pl5hmnz9pwshwrp4fjp0jsm9larjxmjvdnr2m5d1kq6r";
  };
  
  buildInputs = [ zlib xz ];

  preBuild = "cd squashfs-tools";
  
  NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel

  installFlags = "INSTALL_DIR=\${out}/bin";
  
  makeFlags = "XZ_SUPPORT=1";
  
  meta = {
    homepage = http://squashfs.sourceforge.net/;
    description = "Tool for creating and unpacking squashfs filesystems";
  };
}