mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
rocm-thunk: add update script
This commit is contained in:
parent
f73811932b
commit
ea2a723c00
@ -1,5 +1,6 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, writeScript
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, numactl
|
, numactl
|
||||||
@ -28,6 +29,13 @@ stdenv.mkDerivation rec {
|
|||||||
cp -r $src/include $out
|
cp -r $src/include $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = writeScript "update.sh" ''
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p curl jq common-updater-scripts
|
||||||
|
version="$(curl -sL "https://api.github.com/repos/RadeonOpenCompute/ROCT-Thunk-Interface/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)"
|
||||||
|
update-source-version rocm-thunk "$version"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Radeon open compute thunk interface";
|
description = "Radeon open compute thunk interface";
|
||||||
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface";
|
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface";
|
||||||
|
Loading…
Reference in New Issue
Block a user