xar: add xarMinimal

xarMinimal allows e2fsprogs to build fuse2fs again on Darwin.
See https://github.com/NixOS/nixpkgs/pull/339412.
This commit is contained in:
Randy Eckenrode 2024-10-02 19:07:09 -04:00
parent bf45402971
commit aef4614421
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@
xar,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xar";
pname = "xar${lib.optionalString (e2fsprogs == null) "-minimal"}";
version = "498";
src = fetchFromGitHub {

View File

@ -13874,6 +13874,10 @@ with pkgs;
zig = buildPackages.zig_0_12;
};
# A minimal xar is needed to break an infinite recursion between macfuse-stubs and xar.
# It is also needed to reduce the amount of unnecessary stuff in the Darwin bootstrap.
xarMinimal = callPackage ../by-name/xa/xar/package.nix { e2fsprogs = null; };
xclip = callPackage ../tools/misc/xclip { };
xcur2png = callPackage ../tools/graphics/xcur2png { };