Merge pull request #121010 from Flakebi/amdvlk
amdvlk: 2021.Q1.6 -> 2021.Q2.2
This commit is contained in:
commit
2e27fa876d
1 changed files with 4 additions and 8 deletions
|
@ -21,13 +21,13 @@ let
|
|||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "amdvlk";
|
||||
version = "2021.Q1.6";
|
||||
version = "2021.Q2.2";
|
||||
|
||||
src = fetchRepoProject {
|
||||
name = "${pname}-src";
|
||||
manifest = "https://github.com/GPUOpen-Drivers/AMDVLK.git";
|
||||
rev = "refs/tags/v-${version}";
|
||||
sha256 = "FSQ/bYlvdw0Ih3Yl329o8Gizw0YcZTLtiI222Ju4M8w=";
|
||||
sha256 = "4k9ZkBxJGuNUO44F9D+u54eUREl5/8zxjxhaShhzGv0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
@ -70,12 +70,8 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
installPhase = ''
|
||||
install -Dm755 -t $out/lib icd/amdvlk${suffix}.so
|
||||
install -Dm644 -t $out/share/vulkan/icd.d ../drivers/AMDVLK/json/Redhat/amd_icd${suffix}.json
|
||||
|
||||
substituteInPlace $out/share/vulkan/icd.d/amd_icd${suffix}.json --replace \
|
||||
"/usr/lib64" "$out/lib"
|
||||
substituteInPlace $out/share/vulkan/icd.d/amd_icd${suffix}.json --replace \
|
||||
"/usr/lib" "$out/lib"
|
||||
install -Dm644 -t $out/share/vulkan/icd.d icd/amd_icd${suffix}.json
|
||||
install -Dm644 -t $out/share/vulkan/implicit_layer.d icd/amd_icd${suffix}.json
|
||||
|
||||
patchelf --set-rpath "$rpath" $out/lib/amdvlk${suffix}.so
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue