From 6899a742755959f6ad50055b5ee3f5393a09632d Mon Sep 17 00:00:00 2001 From: Jan Moeller Date: Mon, 8 Jan 2024 18:06:38 +0100 Subject: maintainers: add croissong --- maintainers/maintainer-list.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3dde1be956dd8..3c8fc4e30d8ce 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3873,6 +3873,15 @@ githubId = 6821729; github = "criyle"; }; + croissong = { + email = "jan.moeller0@pm.me"; + name = "Jan Möller"; + github = "Croissong"; + githubId = 4162215; + keys = [{ + fingerprint = "CE97 9DEE 904C 26AA 3716 78C2 96A4 38F9 EE72 572F"; + }]; + }; crschnick = { email = "crschnick@xpipe.io"; name = "Christopher Schnick"; -- cgit 1.4.1 From a3dd9749f9cbe70543e2e2b1c172d225233070eb Mon Sep 17 00:00:00 2001 From: Jan Moeller Date: Mon, 8 Jan 2024 18:10:26 +0100 Subject: updatecli: init at 0.70.0 --- pkgs/by-name/up/updatecli/package.nix | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pkgs/by-name/up/updatecli/package.nix diff --git a/pkgs/by-name/up/updatecli/package.nix b/pkgs/by-name/up/updatecli/package.nix new file mode 100644 index 0000000000000..327c6b51bf814 --- /dev/null +++ b/pkgs/by-name/up/updatecli/package.nix @@ -0,0 +1,60 @@ +{ lib +, go +, buildGoModule +, fetchFromGitHub +, nix-update-script +, installShellFiles +}: + +buildGoModule rec { + pname = "updatecli"; + version = "0.70.0"; + + src = fetchFromGitHub { + owner = "updatecli"; + repo = pname; + rev = "v${version}"; + hash = "sha256-MQoi/HvJqGCYzQLNsJul/7N3MXkV1X5d48InUSIWT8o="; + }; + + vendorHash = "sha256-RjyVlj66CbkQlzXkdP6ZWf+cNVjOgoPdskQefv9bNoo="; + + # tests require network access + doCheck = false; + + CGO_ENABLED = 0; + + ldflags = [ + "-s" + "-w" + "-X github.com/updatecli/updatecli/pkg/core/version.BuildTime=unknown" + ''-X "github.com/updatecli/updatecli/pkg/core/version.GoVersion=go version go${lib.getVersion go}"'' + "-X github.com/updatecli/updatecli/pkg/core/version.Version=${version}" + ]; + + passthru.updateScript = nix-update-script { }; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd updatecli \ + --bash <($out/bin/updatecli completion bash) \ + --fish <($out/bin/updatecli completion fish) \ + --zsh <($out/bin/updatecli completion zsh) + + $out/bin/updatecli man > updatecli.1 + installManPage updatecli.1 + ''; + + meta = with lib; { + description = "A Declarative Dependency Management tool"; + longDescription = '' + Updatecli is a command-line tool used to define and apply update strategies. + ''; + homepage = "https://www.updatecli.io"; + changelog = "https://github.com/updatecli/updatecli/releases/tag/v${version}"; + license = licenses.asl20; + mainProgram = "updatecli"; + maintainers = with maintainers; [ croissong ]; + }; +} -- cgit 1.4.1