1{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, libuuid, lz4 }:
2
3stdenv.mkDerivation rec {
4 pname = "erofs-utils";
5 version = "1.6";
6 outputs = [ "out" "man" ];
7
8 src = fetchurl {
9 url =
10 "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz";
11 sha256 = "sha256-2/Gtrv8buFMrKacsip4ZGTjJOJlGdw3HY9PFnm8yBXE=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ fuse libuuid lz4 ];
16
17 configureFlags = [ "--enable-fuse" ];
18
19 meta = with lib; {
20 description = "Userspace utilities for linux-erofs file system";
21 license = with licenses; [ gpl2Plus ];
22 maintainers = with maintainers; [ ehmry ];
23 platforms = platforms.linux;
24 };
25}