nixpkgs/pkgs/tools/filesystems/erofs-utils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
857 B
Nix
Raw Normal View History

2023-06-23 22:01:21 +00:00
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4
, fuseSupport ? stdenv.isLinux
}:
2020-12-31 13:42:41 +00:00
stdenv.mkDerivation rec {
pname = "erofs-utils";
2023-05-10 10:39:05 +00:00
version = "1.6";
2020-12-31 13:42:41 +00:00
outputs = [ "out" "man" ];
2023-05-10 10:39:05 +00:00
src = fetchurl {
2020-12-31 13:42:41 +00:00
url =
2023-05-10 10:39:05 +00:00
"https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz";
sha256 = "sha256-2/Gtrv8buFMrKacsip4ZGTjJOJlGdw3HY9PFnm8yBXE=";
2020-12-31 13:42:41 +00:00
};
2021-09-09 09:59:54 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2023-06-23 22:01:21 +00:00
buildInputs = [ util-linux lz4 ]
++ lib.optionals fuseSupport [ fuse ];
2020-12-31 13:42:41 +00:00
2023-06-23 22:01:21 +00:00
configureFlags = lib.optionals fuseSupport [ "--enable-fuse" ];
2020-12-31 13:42:41 +00:00
meta = with lib; {
2020-12-31 13:42:41 +00:00
description = "Userspace utilities for linux-erofs file system";
2023-05-10 10:39:05 +00:00
license = with licenses; [ gpl2Plus ];
2023-06-23 22:01:21 +00:00
maintainers = with maintainers; [ ehmry nikstur ];
platforms = platforms.unix;
2020-12-31 13:42:41 +00:00
};
}