From 891a6eaf3a217db5420f5ba41c2ad377928f7116 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Tue, 12 Mar 2024 13:37:57 +0100 Subject: [PATCH] gaugePlugins.go: init at 0.4.0 --- .../tools/gauge/plugins/default.nix | 1 + .../tools/gauge/plugins/go/data.json | 15 +++++++++++++++ .../tools/gauge/plugins/go/default.nix | 19 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/development/tools/gauge/plugins/go/data.json create mode 100644 pkgs/development/tools/gauge/plugins/go/default.nix diff --git a/pkgs/development/tools/gauge/plugins/default.nix b/pkgs/development/tools/gauge/plugins/default.nix index 183e6a028d03..05740235d76a 100644 --- a/pkgs/development/tools/gauge/plugins/default.nix +++ b/pkgs/development/tools/gauge/plugins/default.nix @@ -8,4 +8,5 @@ in { java = callPackage ./java { }; js = callPackage ./js { }; ruby = callPackage ./ruby { }; + go = callPackage ./go { }; }) diff --git a/pkgs/development/tools/gauge/plugins/go/data.json b/pkgs/development/tools/gauge/plugins/go/data.json new file mode 100644 index 000000000000..b4c9904bbea4 --- /dev/null +++ b/pkgs/development/tools/gauge/plugins/go/data.json @@ -0,0 +1,15 @@ +{ + "version": "0.4.0", + "aarch64-darwin": { + "url": "https://github.com/getgauge-contrib/gauge-go/releases/download/v0.4.0/gauge-go-0.4.0-darwin.arm64.zip", + "hash": "sha256-tMo3+gQPnldCARm0WB7UYSMwaVpz90N2BiTzmvIFTg0=" + }, + "x86_64-darwin": { + "url": "https://github.com/getgauge-contrib/gauge-go/releases/download/v0.4.0/gauge-go-0.4.0-darwin.x86_64.zip", + "hash": "sha256-zfrEDRyflvvp4Hf2+42RL+5ooY0iBU0bkO2caOAGp74=" + }, + "x86_64-linux": { + "url": "https://github.com/getgauge-contrib/gauge-go/releases/download/v0.4.0/gauge-go-0.4.0-linux.x86_64.zip", + "hash": "sha256-JEHjk51vYCFAcj9xant2vBU3BZI0krYbfZk9ALjdIs0=" + } +} diff --git a/pkgs/development/tools/gauge/plugins/go/default.nix b/pkgs/development/tools/gauge/plugins/go/default.nix new file mode 100644 index 000000000000..c21c517fb7d1 --- /dev/null +++ b/pkgs/development/tools/gauge/plugins/go/default.nix @@ -0,0 +1,19 @@ +{ lib +, makeGaugePlugin +}: +makeGaugePlugin { + pname = "go"; + data = lib.importJSON ./data.json; + + repo = "getgauge-contrib/gauge-go"; + releasePrefix = "gauge-go-"; + + meta = { + description = "Gauge plugin that lets you write tests in Go"; + homepage = "https://github.com/getgauge-contrib/gauge-go"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ marie ]; + sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; + platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; + }; +}