1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 10:24:15 +00:00
nixpkgs/pkgs/tools/filesystems/squashfs-tools-ng/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, doxygen, graphviz, perl, pkg-config
, bzip2, lz4, lzo, xz, zlib, zstd
2019-11-07 18:33:09 +00:00
}:
stdenv.mkDerivation rec {
pname = "squashfs-tools-ng";
2021-08-18 08:03:06 +01:00
version = "1.1.3";
2019-11-07 18:33:09 +00:00
src = fetchurl {
url = "https://infraroot.at/pub/squashfs/squashfs-tools-ng-${version}.tar.xz";
2021-08-18 08:03:06 +01:00
sha256 = "sha256-q84Pz5qK4cM1Lk5eh+Gwd/VEEdpRczLqg7XnzpSN1w0=";
2019-11-07 18:33:09 +00:00
};
nativeBuildInputs = [ doxygen graphviz pkg-config perl ];
buildInputs = [ bzip2 zlib xz lz4 lzo zstd ];
enableParallelBuilding = true;
2019-11-07 18:33:09 +00:00
meta = with lib; {
homepage = "https://github.com/AgentD/squashfs-tools-ng";
2019-11-07 18:33:09 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ qyliss ];
platforms = platforms.unix;
# 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
broken = stdenv.isDarwin && stdenv.isx86_64;
2019-11-07 18:33:09 +00:00
};
}