depot/third_party/nixpkgs/pkgs/tools/filesystems/erofs-utils/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

63 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
fuse,
util-linux,
lz4,
xz,
zlib,
libselinux,
fuseSupport ? stdenv.hostPlatform.isLinux,
selinuxSupport ? false,
lzmaSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "erofs-utils";
version = "1.8.2";
outputs = [
"out"
"man"
];
src = fetchurl {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz";
hash = "sha256-ZLb/fomfYkgCg87mN4fzfw+cS+emvHoj1zSqqHOmz/Q=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs =
[
util-linux
lz4
zlib
]
++ lib.optionals fuseSupport [ fuse ]
++ lib.optionals selinuxSupport [ libselinux ]
++ lib.optionals lzmaSupport [ xz ];
configureFlags =
[ "MAX_BLOCK_SIZE=4096" ]
++ lib.optional fuseSupport "--enable-fuse"
++ lib.optional selinuxSupport "--with-selinux"
++ lib.optional lzmaSupport "--enable-lzma";
meta = with lib; {
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/";
description = "Userspace utilities for linux-erofs file system";
changelog = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/tree/ChangeLog?h=v${version}";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [
ehmry
nikstur
jmbaur
];
platforms = platforms.unix;
};
})