nixpkgs/pkgs/tools/filesystems/erofs-utils/default.nix
2023-06-27 13:05:02 +02:00

29 lines
857 B
Nix

{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4
, fuseSupport ? stdenv.isLinux
}:
stdenv.mkDerivation rec {
pname = "erofs-utils";
version = "1.6";
outputs = [ "out" "man" ];
src = fetchurl {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz";
sha256 = "sha256-2/Gtrv8buFMrKacsip4ZGTjJOJlGdw3HY9PFnm8yBXE=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ util-linux lz4 ]
++ lib.optionals fuseSupport [ fuse ];
configureFlags = lib.optionals fuseSupport [ "--enable-fuse" ];
meta = with lib; {
description = "Userspace utilities for linux-erofs file system";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ ehmry nikstur ];
platforms = platforms.unix;
};
}