bat: fix darwin build
commit02594b3aed2d0cbdeb81bb48902d411f05244a61
authorzowoq <59103226+zowoq@users.noreply.github.com>
dateSun 4 Oct 2020, 09:14 (6 years ago)
parentef2898f
pkgs/tools/misc/bat/default.nix+5
@@ -26,6 +26,11 @@ rustPlatform.buildRustPackage rec {
2626
2727 buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security libiconv ];
2828
29+ # Remove after https://github.com/NixOS/nixpkgs/pull/97000 lands into master
30+ preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
31+ unset SDKROOT
32+ '';
33+
2934 postInstall = ''
3035 installManPage $releaseDir/build/bat-*/out/assets/manual/bat.1
3136 installShellCompletion $releaseDir/build/bat-*/out/assets/completions/bat.{fish,zsh}