depot/third_party/nixpkgs/pkgs/tools/filesystems/erofs-utils/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

28 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;
};
}