From 3fd65b2bc8d7de36d27d8a914e1ee7eb60506650 Mon Sep 17 00:00:00 2001 From: Tom Oostveen Date: Wed, 27 May 2026 14:13:52 +0200 Subject: [PATCH] github-desktop: link libexec/git-core into git wrapper needed so github-desktop's git wrapper (dugite) can find subcommands like `git-submodule` etc. Retrieve the full list with `ls -l $(nix build --print-out-paths nixpkgs#git)/libexec/git-core | grep -vE '( -> )?git$' | awk '{ print $7 }'`. Fixes #524797 --- pkgs/by-name/gi/github-desktop/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gi/github-desktop/package.nix b/pkgs/by-name/gi/github-desktop/package.nix index afce9672250e..633f90199393 100644 --- a/pkgs/by-name/gi/github-desktop/package.nix +++ b/pkgs/by-name/gi/github-desktop/package.nix @@ -100,9 +100,15 @@ stdenv.mkDerivation (finalAttrs: { yarn --cwd app/node_modules/desktop-notifications run install # use git from nixpkgs instead of an automatically downloaded one by dugite - makeWrapper ${lib.getExe git} app/node_modules/dugite/git/bin/git \ + gitRoot=app/node_modules/dugite/git + makeWrapper ${lib.getExe git} "$gitRoot/bin/git" \ --prefix PATH : ${lib.makeBinPath [ git-lfs ]} + mkdir -p "$gitRoot/libexec/git-core" + + for script in ${git}/libexec/git-core/*; do + ln -s "$script" "$gitRoot/libexec/git-core/$(basename "$script")" + done # exception: printenvz needs `node-gyp` configure first for some reason pushd node_modules/printenvz