7 pname = "vkd3d-proton";
10 src = fetchFromGitHub {
11 owner = "HansKristian-Work";
12 repo = "vkd3d-proton";
13 rev = "v${self.version}";
14 fetchSubmodules = true;
16 # Some files are filled by using Git commands; it requires deepClone.
17 # More info at `checkout_ref` function in nix-prefetch-git.
18 # However, `.git` is a bit nondeterministic (and Git itself makes no
19 # guarrantees whatsoever).
20 # Then, in order to enhance reproducibility, what we will do here is:
22 # - Execute the desired Git commands;
23 # - Save the obtained info into files;
24 # - Remove `.git` afterwards.
29 mkdir -p .nixpkgs-auxfiles/
30 git describe --always --exclude='*' --abbrev=15 --dirty=0 > .nixpkgs-auxfiles/vkd3d_build
31 git describe --always --tags --dirty=+ > .nixpkgs-auxfiles/vkd3d_version
32 find $out -name .git -print0 | xargs -0 rm -fr
34 hash = "sha256-dJYQ6pJdfRQwr8OrxxpWG6YMfeTXqzTrHXDd5Ecxbi8=";