remove unnecessary patch

This commit is contained in:
Dmitriy Kholkin 2021-10-11 22:38:48 +03:00
parent 65dd0103ac
commit bf144d599d
2 changed files with 1 additions and 14 deletions

View File

@ -21,7 +21,7 @@
autoOptimiseStore = false;
package = inputs.nix.packages.x86_64-linux.nix.overrideAttrs (oa: {
patches = [ ./nix.patch ./flakes.patch ] ++ oa.patches or [];
patches = [ ./nix.patch ] ++ oa.patches or [];
});
extraOptions = ''

View File

@ -1,13 +0,0 @@
diff --git a/src/nix/get-env.sh b/src/nix/get-env.sh
index 42c806450..a8563c772 100644
--- a/src/nix/get-env.sh
+++ b/src/nix/get-env.sh
@@ -8,6 +8,8 @@ if [[ -n $stdenv ]]; then
source $stdenv/setup
fi
+unset -f isMachO
+
# Better to use compgen, but stdenv bash doesn't have it.
__vars="$(declare -p)"
__functions="$(declare -F)"