fish: disable codesigning

We don't have access to the codesign binary.
This commit is contained in:
Cole Helbling 2020-04-27 14:21:05 -07:00
parent a43ae05369
commit 87b02f74cf
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C
2 changed files with 16 additions and 0 deletions

View file

@ -110,6 +110,10 @@ let
sha256 = "1f12c56v7n4s0f9mi9xinviwj6kpwlcjwaig1d4vsk5wlgp7ip07";
};
# We don't have access to the codesign executable, so we patch this out.
# For more information, see: https://github.com/fish-shell/fish-shell/issues/6952
patches = lib.optional stdenv.isDarwin ./dont-codesign-on-mac.diff;
nativeBuildInputs = [
cmake
];

View file

@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7d220a032..786b60e6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -183,7 +183,6 @@ ENDFUNCTION(CODESIGN_ON_MAC target)
# Define a function to link dependencies.
FUNCTION(FISH_LINK_DEPS_AND_SIGN target)
TARGET_LINK_LIBRARIES(${target} fishlib)
- CODESIGN_ON_MAC(${target})
ENDFUNCTION(FISH_LINK_DEPS_AND_SIGN)
# Define libfish.a.