about summary refs log tree commit diff
path: root/pkgs/development/libraries/tensile/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/tensile/default.nix')
-rw-r--r--pkgs/development/libraries/tensile/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/libraries/tensile/default.nix b/pkgs/development/libraries/tensile/default.nix
index 11a317b3f24c3..df3b580c059f1 100644
--- a/pkgs/development/libraries/tensile/default.nix
+++ b/pkgs/development/libraries/tensile/default.nix
@@ -1,7 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
-, writeScript
+, rocmUpdateScript
 , buildPythonPackage
 , pyyaml
 , msgpack
@@ -25,13 +25,11 @@ buildPythonPackage rec {
     pandas
   ];
 
-  passthru.updateScript = writeScript "update.sh" ''
-    #!/usr/bin/env nix-shell
-    #!nix-shell -i bash -p curl jq common-updater-scripts
-    version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
-      -sL "https://api.github.com/repos/ROCmSoftwarePlatform/Tensile/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
-    update-source-version tensile "$version" --ignore-same-hash
-  '';
+  passthru.updateScript = rocmUpdateScript {
+    name = pname;
+    owner = src.owner;
+    repo = src.repo;
+  };
 
   meta = with lib; {
     description = "GEMMs and tensor contractions";