From fba38cf6932178db2838552cb1ebd705a453af71 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Mon, 5 Jan 2026 17:52:10 +0100 Subject: [PATCH] fetchFromGithub: use fetchgit when postCheckout is not an empty string Following https://github.com/NixOS/nixpkgs/pull/465497 it's possible to specify `postCheckout` to perform actions after repo is fetched but before `.git` is deleted. Signed-off-by: Marcin Serwin --- pkgs/build-support/fetchgithub/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/fetchgithub/default.nix b/pkgs/build-support/fetchgithub/default.nix index a08f6d5de12b6..288a10b95a4b9 100644 --- a/pkgs/build-support/fetchgithub/default.nix +++ b/pkgs/build-support/fetchgithub/default.nix @@ -15,6 +15,7 @@ let fetchLFS = false; forceFetchGit = false; leaveDotGit = null; + postCheckout = ""; rootDir = ""; sparseCheckout = null; };