exercism: add update script

This commit is contained in:
Norbert Melzer 2023-04-09 11:06:45 +02:00
parent 746efed6f8
commit 5b84ccce78

View file

@ -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";