about summary refs log tree commit diff
path: root/pkgs/applications/misc/exercism
diff options
context:
space:
mode:
authorNorbert Melzer <timmelzer@gmail.com>2023-04-09 11:06:45 +0200
committerNorbert Melzer <timmelzer@gmail.com>2023-04-09 11:06:45 +0200
commit5b84ccce78843b2b13721c67aa9a3fa10eb14ac5 (patch)
tree2e7a1d247fadd8351a061190cc70097ef4040d5c /pkgs/applications/misc/exercism
parent746efed6f819c0e010b096e21b037e16ef0939d9 (diff)
exercism: add update script
Diffstat (limited to 'pkgs/applications/misc/exercism')
-rw-r--r--pkgs/applications/misc/exercism/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/applications/misc/exercism/default.nix b/pkgs/applications/misc/exercism/default.nix
index f13d45059473e..c440c0cc82064 100644
--- a/pkgs/applications/misc/exercism/default.nix
+++ b/pkgs/applications/misc/exercism/default.nix
@@ -1,22 +1,24 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
 
 buildGoModule rec {
   pname = "exercism";
   version = "3.1.0";
 
   src = fetchFromGitHub {
-    owner  = "exercism";
-    repo   = "cli";
-    rev    = "v${version}";
-    sha256 = "sha256-9GdkQaxYvxMGI5aFwUtQnctjpZfjZaKP3CsMjC/ZBSo";
+    owner = "exercism";
+    repo  = "cli";
+    rev   = "v${version}";
+    hash  = "sha256-9GdkQaxYvxMGI5aFwUtQnctjpZfjZaKP3CsMjC/ZBSo=";
   };
 
-  vendorSha256 = "sha256-EW9SNUqJHgPQlNpeErYaooJRXGcDrNpXLhMYpmZPVSw";
+  vendorHash = "sha256-EW9SNUqJHgPQlNpeErYaooJRXGcDrNpXLhMYpmZPVSw=";
 
   doCheck = false;
 
   subPackages = [ "./exercism" ];
 
+  passthru.updateScript = nix-update-script { };
+
   meta = with lib; {
    inherit (src.meta) homepage;
    description = "A Go based command line tool for exercism.io";