2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, doxygen, graphviz, perl, pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
, bzip2, lz4, lzo, xz, zlib, zstd
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "squashfs-tools-ng";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://infraroot.at/pub/squashfs/squashfs-tools-ng-${version}.tar.xz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "07c8vpzgwvqr9ycww1769ya40cf077c6igdg1b4akwszz2nw0bxq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ doxygen graphviz pkg-config perl ];
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ bzip2 zlib xz lz4 lzo zstd ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/AgentD/squashfs-tools-ng";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
platforms = platforms.unix;
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
# TODO: Remove once nixpkgs uses newer SDKs that supports '*at' functions.
|
|
|
|
# Probably macOS SDK 10.13 or later. Check the current version in
|
|
|
|
# ../../../../os-specific/darwin/apple-sdk/default.nix
|
|
|
|
#
|
|
|
|
# From the build logs:
|
|
|
|
#
|
|
|
|
# > Undefined symbols for architecture x86_64:
|
|
|
|
# > "_utimensat", referenced from:
|
|
|
|
# > _set_attribs in rdsquashfs-restore_fstree.o
|
|
|
|
# > ld: symbol(s) not found for architecture x86_64
|
2021-05-28 09:39:13 +00:00
|
|
|
broken = stdenv.isDarwin && stdenv.isx86_64;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|