gitkraken: fix wrapper for non-gnome environments

This commit is contained in:
éclairevoyant 2024-02-02 16:11:10 -05:00
parent 5fd6c33068
commit a876becb8b
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

View File

@ -109,6 +109,9 @@ let
nativeBuildInputs = [ copyDesktopItems makeWrapper wrapGAppsHook ];
buildInputs = [ gtk3 gnome.adwaita-icon-theme ];
# avoid double-wrapping
dontWrapGApps = true;
installPhase = ''
runHook preInstall
@ -145,7 +148,9 @@ let
# GitKraken expects the CA bundle to be located in the bundled git directory. Since we replace it with
# the one from nixpkgs, which doesn't provide a CA bundle, we need to explicitly set its location at runtime
makeWrapper $out/share/${pname}/gitkraken $out/bin/gitkraken --set GIT_SSL_CAINFO "${cacert}/etc/ssl/certs/ca-bundle.crt"
makeWrapper $out/share/${pname}/gitkraken $out/bin/gitkraken \
--set GIT_SSL_CAINFO "${cacert}/etc/ssl/certs/ca-bundle.crt" \
"''${gappsWrapperArgs[@]}"
'';
};