diff options
author | iivusly <iivusly@icloud.com> | 2024-02-17 14:43:43 -0800 |
---|---|---|
committer | iivusly <iivusly@icloud.com> | 2024-02-17 14:43:43 -0800 |
commit | 08a48457f950ec1910b68e2e9bf4b2a2c4d41111 (patch) | |
tree | dc7b4f9818a0c93653899ade6bd2b52f7812e0f8 /pkgs/tools/archivers | |
parent | fa17e0c563dc934b69e855d42c350af828918245 (diff) |
wimlib: fix fuse3 darwin dependency
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/wimlib/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/archivers/wimlib/default.nix b/pkgs/tools/archivers/wimlib/default.nix index 70fcad9cea889..ee239a5a255f9 100644 --- a/pkgs/tools/archivers/wimlib/default.nix +++ b/pkgs/tools/archivers/wimlib/default.nix @@ -1,8 +1,9 @@ { lib, stdenv, fetchurl, makeWrapper -, pkg-config, fuse3 +, pkg-config , cabextract ? null , cdrkit ? null , mtools ? null +, fuse3 ? null , ntfs3g ? null , syslinux ? null }: @@ -12,7 +13,7 @@ stdenv.mkDerivation rec { pname = "wimlib"; nativeBuildInputs = [ pkg-config makeWrapper ]; - buildInputs = [ fuse3 ntfs3g ]; + buildInputs = [ ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ fuse3 ]; src = fetchurl { url = "https://wimlib.net/downloads/${pname}-${version}.tar.gz"; @@ -27,7 +28,7 @@ stdenv.mkDerivation rec { ''; postInstall = let - path = lib.makeBinPath ([ cabextract mtools ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ cdrkit syslinux ]); + path = lib.makeBinPath ([ cabextract mtools ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ cdrkit syslinux fuse3 ]); in '' for prog in $out/bin/*; do wrapProgram $prog --prefix PATH : $out/bin:${path} |