vkd3d-proton: nixfmt-rfc-style
This commit is contained in:
parent
dced6710d6
commit
e9cb38e00d
@ -14,7 +14,10 @@ in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit (sources.vkd3d-proton) pname version src;
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
glslang
|
||||
|
@ -1,40 +1,39 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
{ fetchFromGitHub }:
|
||||
|
||||
{
|
||||
vkd3d-proton = let
|
||||
self = {
|
||||
pname = "vkd3d-proton";
|
||||
version = "2.8-unstable-2023-04-21";
|
||||
vkd3d-proton =
|
||||
let
|
||||
self = {
|
||||
pname = "vkd3d-proton";
|
||||
version = "2.8-unstable-2023-04-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HansKristian-Work";
|
||||
repo = "vkd3d-proton";
|
||||
rev = "83308675078e9ea263fa8c37af95afdd15b3ab71";
|
||||
fetchSubmodules = true;
|
||||
#
|
||||
# Some files are filled by using Git commands; it requires deepClone.
|
||||
# More info at `checkout_ref` function in nix-prefetch-git.
|
||||
# However, `.git` is a bit nondeterministic (and Git itself makes no
|
||||
# guarrantees whatsoever).
|
||||
# Then, in order to enhance reproducibility, what we will do here is:
|
||||
#
|
||||
# - Execute the desired Git commands;
|
||||
# - Save the obtained info into files;
|
||||
# - Remove `.git` afterwards.
|
||||
#
|
||||
deepClone = true;
|
||||
postFetch = ''
|
||||
cd $out
|
||||
mkdir -p .nixpkgs-auxfiles/
|
||||
git describe --always --exclude='*' --abbrev=15 --dirty=0 > .nixpkgs-auxfiles/vkd3d_build
|
||||
git describe --always --tags --dirty=+ > .nixpkgs-auxfiles/vkd3d_version
|
||||
find $out -name .git -print0 | xargs -0 rm -fr
|
||||
'';
|
||||
hash = "sha256-KAa7iidME3iVGLvGmCysU3Vnl14Et8Es/5n6m6E+jHU=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "HansKristian-Work";
|
||||
repo = "vkd3d-proton";
|
||||
rev = "83308675078e9ea263fa8c37af95afdd15b3ab71";
|
||||
fetchSubmodules = true;
|
||||
#
|
||||
# Some files are filled by using Git commands; it requires deepClone.
|
||||
# More info at `checkout_ref` function in nix-prefetch-git.
|
||||
# However, `.git` is a bit nondeterministic (and Git itself makes no
|
||||
# guarrantees whatsoever).
|
||||
# Then, in order to enhance reproducibility, what we will do here is:
|
||||
#
|
||||
# - Execute the desired Git commands;
|
||||
# - Save the obtained info into files;
|
||||
# - Remove `.git` afterwards.
|
||||
#
|
||||
deepClone = true;
|
||||
postFetch = ''
|
||||
cd $out
|
||||
mkdir -p .nixpkgs-auxfiles/
|
||||
git describe --always --exclude='*' --abbrev=15 --dirty=0 > .nixpkgs-auxfiles/vkd3d_build
|
||||
git describe --always --tags --dirty=+ > .nixpkgs-auxfiles/vkd3d_version
|
||||
find $out -name .git -print0 | xargs -0 rm -fr
|
||||
'';
|
||||
hash = "sha256-KAa7iidME3iVGLvGmCysU3Vnl14Et8Es/5n6m6E+jHU=";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
in
|
||||
self;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user