mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
amdvlk: move to pkgs/by-name
This commit is contained in:
parent
71de7c7e2b
commit
a72194fa1a
@ -106,12 +106,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p coreutils curl gnused jq common-updater-scripts
|
||||
|
||||
packagePath="pkgs/by-name/am/amdvlk/package.nix"
|
||||
|
||||
function setHash() {
|
||||
sed -i "pkgs/development/libraries/amdvlk/default.nix" -e 's,sha256 = "[^'"'"'"]*",sha256 = "'"$1"'",'
|
||||
sed -i $packagePath -e 's,sha256 = "[^'"'"'"]*",sha256 = "'"$1"'",'
|
||||
}
|
||||
|
||||
version="$(curl -sL "https://api.github.com/repos/GPUOpen-Drivers/AMDVLK/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
|
||||
sed -i "pkgs/development/libraries/amdvlk/default.nix" -e 's/version = "[^'"'"'"]*"/version = "'"$version"'"/'
|
||||
sed -i $packagePath -e 's/version = "[^'"'"'"]*"/version = "'"$version"'"/'
|
||||
|
||||
setHash "$(nix-instantiate --eval -A lib.fakeSha256 | xargs echo)"
|
||||
hash="$(nix to-base64 $(nix-build -A amdvlk 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true))"
|
@ -19431,8 +19431,6 @@ with pkgs;
|
||||
allegro4 = callPackage ../development/libraries/allegro { };
|
||||
allegro5 = callPackage ../development/libraries/allegro/5.nix { };
|
||||
|
||||
amdvlk = callPackage ../development/libraries/amdvlk { };
|
||||
|
||||
amf-headers = callPackage ../development/libraries/amf-headers { };
|
||||
|
||||
aml = callPackage ../development/libraries/aml { };
|
||||
|
Loading…
Reference in New Issue
Block a user