From 22f6fc83ad6040327ada19595976df865aa0359b Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 19 Mar 2024 00:01:38 +0100 Subject: [PATCH 1/2] maintainers: add chmouel --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index dad1f76ab7c3..e71381b74113 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3610,6 +3610,12 @@ githubId = 1118859; name = "Scott Worley"; }; + chmouel = { + email = "chmouel@chmouel.com"; + github = "chmouel"; + githubId = 98980; + name = "Chmouel Boudjnah"; + }; choochootrain = { email = "hurshal@imap.cc"; github = "choochootrain"; From 666df9d6ac5e07158ac24e74ad3b64299dbb896c Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 21 May 2024 13:11:50 +0200 Subject: [PATCH 2/2] gosmee: new package at 0.21.0 Signed-off-by: Vincent Demeester --- pkgs/by-name/go/gosmee/package.nix | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/go/gosmee/package.nix diff --git a/pkgs/by-name/go/gosmee/package.nix b/pkgs/by-name/go/gosmee/package.nix new file mode 100644 index 000000000000..239bda90bd77 --- /dev/null +++ b/pkgs/by-name/go/gosmee/package.nix @@ -0,0 +1,38 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "gosmee"; + version = "0.21.0"; + + src = fetchFromGitHub { + owner = "chmouel"; + repo = "gosmee"; + rev = "v${version}"; + sha256 = "sha256-VNBz6roula/YlsYMM1kjQT3TLuQ86/MESzNNkEf/92M="; + }; + vendorHash = null; + + nativeBuildInputs = [ installShellFiles ]; + + postPatch = '' + printf ${version} > gosmee/templates/version + ''; + + postInstall = '' + installShellCompletion --cmd gosmee \ + --bash <($out/bin/gosmee completion bash) \ + --fish <($out/bin/gosmee completion fish) \ + --zsh <($out/bin/gosmee completion zsh) + ''; + + meta = { + description = "Command line server and client for webhooks deliveries (and https://smee.io)"; + homepage = "https://github.com/chmouel/gosmee"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ vdemeester chmouel ]; + }; +}