erofs-utils: enable running on darwin

This commit is contained in:
nikstur 2023-06-24 00:01:21 +02:00
parent b621273236
commit a3d60923a5
2 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,6 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, libuuid, lz4 }:
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4
, fuseSupport ? stdenv.isLinux
}:
stdenv.mkDerivation rec {
pname = "erofs-utils";
@ -12,14 +14,15 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fuse libuuid lz4 ];
buildInputs = [ util-linux lz4 ]
++ lib.optionals fuseSupport [ fuse ];
configureFlags = [ "--enable-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 ];
platforms = platforms.linux;
maintainers = with maintainers; [ ehmry nikstur ];
platforms = platforms.unix;
};
}

View file

@ -7135,6 +7135,8 @@ with pkgs;
ecmtools = callPackage ../tools/cd-dvd/ecm-tools { };
erofs-utils = callPackage ../tools/filesystems/erofs-utils { };
e2tools = callPackage ../tools/filesystems/e2tools { };
e2fsprogs = callPackage ../tools/filesystems/e2fsprogs { };
@ -26935,8 +26937,6 @@ with pkgs;
dstat = callPackage ../os-specific/linux/dstat { };
erofs-utils = callPackage ../os-specific/linux/erofs-utils { };
evdev-proto = callPackage ../os-specific/bsd/freebsd/evdev-proto { };
fscryptctl = callPackage ../os-specific/linux/fscryptctl { };