14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
20 repo = "squashfs-tools";
22 hash = "sha256-C/awQpp1Q/0adx3YVNTq6ruEAzcjL5G7SkOCgpvAA50=";
26 # This patch adds an option to pad filesystems (increasing size) in
27 # exchange for better chunking / binary diff calculation.
32 nativeBuildInputs = [ which ]
33 # when cross-compiling help2man cannot run the cross-compiled binary
34 ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ help2man ];
35 buildInputs = [ zlib xz zstd lz4 lzo ];
42 "INSTALL_DIR=${placeholder "out"}/bin"
43 "INSTALL_MANPAGES_DIR=${placeholder "out"}/share/man/man1"
55 nixos-iso-boots-and-verifies = nixosTests.boot.biosCdrom;
59 homepage = "https://github.com/plougher/squashfs-tools";
60 description = "Tool for creating and unpacking squashfs filesystems";
61 platforms = platforms.unix;
62 license = licenses.gpl2Plus;
63 maintainers = with maintainers; [ ruuda ];
64 mainProgram = "mksquashfs";