Skip to content

Commit ef9c68b

Browse files
committed
vtsls: use gitSetupHook
1 parent 6703f40 commit ef9c68b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkgs/by-name/vt/vtsls/package.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
fetchFromGitHub,
55
nodejs_22,
66
gitMinimal,
7+
gitSetupHook,
78
pnpm_8,
89
nix-update-script,
910
}:
@@ -24,6 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
2425
nodejs_22
2526
# patches are applied with git during build
2627
gitMinimal
28+
gitSetupHook
2729
pnpm_8.configHook
2830
];
2931

@@ -50,10 +52,6 @@ stdenv.mkDerivation (finalAttrs: {
5052
buildPhase = ''
5153
runHook preBuild
5254
53-
# During build vtsls needs a working git installation.
54-
git config --global user.name nixbld
55-
git config --global user.email [email protected]
56-
5755
# during build this sha is used as a marker to skip applying patches and
5856
# copying files, which doesn't matter in this case
5957
echo "dummysha" > ./packages/service/HEAD

0 commit comments

Comments
 (0)