lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

rocclr: add update script

+8
+8
pkgs/development/libraries/rocclr/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchFromGitHub 3 + , writeScript 3 4 , cmake 4 5 , rocm-cmake 5 6 , clang ··· 49 50 50 51 substituteInPlace $out/lib/cmake/rocclr/ROCclrConfig.cmake \ 51 52 --replace "/build/source/build" "$out" 53 + ''; 54 + 55 + passthru.updateScript = writeScript "update.sh" '' 56 + #!/usr/bin/env nix-shell 57 + #!nix-shell -i bash -p curl jq common-updater-scripts 58 + version="$(curl -sL "https://api.github.com/repos/ROCm-Developer-Tools/ROCclr/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)" 59 + update-source-version rocclr "$version" 52 60 ''; 53 61 54 62 meta = with lib; {