diff options
author | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-07 00:55:09 -0700 |
---|---|---|
committer | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-07 22:02:42 -0700 |
commit | e2b4425c17ae44f43604a33d7e720897b049cabb (patch) | |
tree | c194322113a963a609b4609e8b6425671129a9d8 | |
parent | 2542605888a650adf055af93f3d9a0dd0d2a93c0 (diff) |
git: add uname_S make flag for freebsd cross
Otherwise, it takes the host uname -s value, which configures git incorrectly.
-rw-r--r-- | pkgs/applications/version-management/git/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/git/default.nix b/pkgs/applications/version-management/git/default.nix index 375908863a2ab..b6d280405b4c3 100644 --- a/pkgs/applications/version-management/git/default.nix +++ b/pkgs/applications/version-management/git/default.nix @@ -121,7 +121,8 @@ stdenv.mkDerivation (finalAttrs: { # acceptable version. # # See https://github.com/Homebrew/homebrew-core/commit/dfa3ccf1e7d3901e371b5140b935839ba9d8b706 - ++ lib.optional stdenv.isDarwin "TKFRAMEWORK=/nonexistent"; + ++ lib.optional stdenv.isDarwin "TKFRAMEWORK=/nonexistent" + ++ lib.optional (stdenv.hostPlatform.isFreeBSD && stdenv.hostPlatform != stdenv.buildPlatform) "uname_S=FreeBSD"; disallowedReferences = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ stdenv.shellPackage |