mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
39 lines
914 B
Nix
39 lines
914 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gosmee";
|
|
version = "0.22.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chmouel";
|
|
repo = "gosmee";
|
|
rev = "v${version}";
|
|
hash = "sha256-UnGzPkbw7x8l1+9xEXFiJZFzJT5yu7MCgPKkKzaFqkk=";
|
|
};
|
|
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 ];
|
|
};
|
|
}
|