Skip to content

Commit

Permalink
Merge pull request NixOS#289634 from iivusly/wimlib
Browse files Browse the repository at this point in the history
wimlib: fix fuse3 darwin dependency
  • Loading branch information
wegank authored Feb 18, 2024
2 parents d267f81 + 08a4845 commit 3443013
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/archivers/wimlib/default.nix
Original file line number Diff line number Diff line change
@@ -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
}:
Expand All @@ -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";
Expand All @@ -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}
Expand Down

0 comments on commit 3443013

Please sign in to comment.