From 63dd9190dc078ca0969cb6d23e4a563ba6e9c539 Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Mon, 22 May 2023 15:04:43 -0700 Subject: [PATCH] sem: init at 0.28.1 Signed-off-by: liberatys --- maintainers/maintainer-list.nix | 6 +++++ pkgs/development/tools/sem/default.nix | 31 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/sem/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c0225a54b3e6..ae6960a3536a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8839,6 +8839,12 @@ githubId = 1769386; name = "Liam Diprose"; }; + liberatys = { + email = "liberatys@hey.com"; + name = "Nick Anthony Flueckiger"; + github = "liberatys"; + githubId = 35100156; + }; libjared = { email = "jared@perrycode.com"; github = "libjared"; diff --git a/pkgs/development/tools/sem/default.nix b/pkgs/development/tools/sem/default.nix new file mode 100644 index 000000000000..177490762722 --- /dev/null +++ b/pkgs/development/tools/sem/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "sem"; + version = "0.28.1"; + + src = fetchFromGitHub { + owner = "semaphoreci"; + repo = "cli"; + rev = "v${version}"; + sha256 = "sha256-pyin05mPIAq5dJebLehsCYDaIf5eGCcGzF5uz8egJV8="; + }; + + vendorSha256 = "sha256-kuLN3r6CGL/fGQ5ggSLZWNC4AVvvGn6znTFGqkS4AXg="; + subPackages = [ "." ]; + + ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ]; + + postInstall = '' + install -m755 $out/bin/cli $out/bin/sem + ''; + + meta = with lib; { + description = "A cli to operate on semaphore ci (2.0)"; + homepage = "https://github.com/semaphoreci/cli"; + changelog = "https://github.com/semaphoreci/cli/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ liberatys ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 43d13b2a3d6f..2e0041f4cfc0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18917,6 +18917,8 @@ with pkgs; selendroid = callPackage ../development/tools/selenium/selendroid { }; + sem = callPackage ../development/tools/sem { }; + semver-tool = callPackage ../development/tools/misc/semver-tool { }; semantik = libsForQt5.callPackage ../applications/office/semantik { };