summary refs log tree commit diff
path: root/pkgs/tools/filesystems/squashfs-tools-ng/default.nix
blob: 727e257a4861e9dc7ad4bf19c1294834efd7d8b6 (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
26
{ stdenv, lib, fetchurl, fetchpatch, autoreconfHook, doxygen, graphviz, perl
, pkgconfig, lz4, xz, zlib, zstd
}:

stdenv.mkDerivation rec {
  pname = "squashfs-tools-ng";
  version = "0.7";

  src = fetchurl {
    url = "https://infraroot.at/pub/squashfs/squashfs-tools-ng-${version}.tar.xz";
    sha256 = "01yn621dnsfhrah3qj1xh6ynag7r3nvihc510sa5frapkyg9nw8n";
  };

  patches = lib.optional (!stdenv.isLinux) ./0001-Fix-build-on-BSD-systems.patch;

  nativeBuildInputs = [ doxygen graphviz pkgconfig perl ]
                      ++ lib.optional (!stdenv.isLinux) autoreconfHook;
  buildInputs = [ zlib xz lz4 zstd ];

  meta = with lib; {
    homepage = https://github.com/AgentD/squashfs-tools-ng;
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ qyliss ];
    platforms = platforms.unix;
  };
}