···773774: Whether to fetch LFS objects.
77500000776*`postFetch`* (String)
777778-: Shell code executed after the file has been fetched successfully.
779 This can do things like check or transform the file.
780781*`leaveDotGit`* (Boolean)
···773774: Whether to fetch LFS objects.
775776+*`preFetch`* (String)
777+778+: Shell code to be executed before the repository has been fetched, to allow
779+ changing the environment the fetcher runs in.
780+781*`postFetch`* (String)
782783+: Shell code executed after the repository has been fetched successfully.
784 This can do things like check or transform the file.
785786*`leaveDotGit`* (Boolean)
···38 nonConeMode ? false,
39 name ? null,
40 nativeBuildInputs ? [ ],
0000041 # Shell code executed after the file has been fetched
42 # successfully. This can do things like check or transform the file.
43 postFetch ? "",
···75 server admins start using the new version?
76 */
7778- assert deepClone -> leaveDotGit;
79 assert nonConeMode -> (sparseCheckout != [ ]);
8081 let
···130 deepClone
131 branchName
132 nonConeMode
0133 postFetch
134 ;
135 rev = revWithTag;
···38 nonConeMode ? false,
39 name ? null,
40 nativeBuildInputs ? [ ],
41+ # Shell code executed before the file has been fetched. This, in
42+ # particular, can do things like set NIX_PREFETCH_GIT_CHECKOUT_HOOK to
43+ # run operations between the checkout completing and deleting the .git
44+ # directory.
45+ preFetch ? "",
46 # Shell code executed after the file has been fetched
47 # successfully. This can do things like check or transform the file.
48 postFetch ? "",
···80 server admins start using the new version?
81 */
82083 assert nonConeMode -> (sparseCheckout != [ ]);
8485 let
···134 deepClone
135 branchName
136 nonConeMode
137+ preFetch
138 postFetch
139 ;
140 rev = revWithTag;