···55 inherit owner;
56 repo = pname;
57 rev = "v${version}";
58- sha256 = "sha256-mNpZj8c+IHcW0StFzRPt7wcysADh01eLFcIK6fX/2KQ=";
59- leaveDotGit = true;
60 };
6162 # Upstream doesn't include the lockfile so we need to add it back
···75 git
76 ];
77078 preCheck = ''
79- # `cargo-llvm-cov`'s tests rely on `git ls-files` so the staging area needs
80- # to not have everything staged as deleted, which is how `leaveDotGit` in
81- # `fetchFromGitHub` leaves the staging area for reproducibility reasons.
82- git restore --staged .
83 '';
8485 meta = {
···55 inherit owner;
56 repo = pname;
57 rev = "v${version}";
58+ sha256 = "sha256-fZrYmsulKOvgW/WtsYL7r4Cby+m9ShgXozxj1ZQ5ZAY=";
059 };
6061 # Upstream doesn't include the lockfile so we need to add it back
···74 git
75 ];
7677+ # `cargo-llvm-cov` tests rely on `git ls-files.
78 preCheck = ''
79+ git init -b main
80+ git add .
0081 '';
8283 meta = {