From cac396db249b4e71efcfc2052a06c13f85152650 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 21 Nov 2024 22:25:52 -0300 Subject: [PATCH] sequin: init at 0.2.0 Signed-off-by: Carlos Alexandro Becker Co-authored-by: Donovan Glover --- pkgs/by-name/se/sequin/package.nix | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/se/sequin/package.nix diff --git a/pkgs/by-name/se/sequin/package.nix b/pkgs/by-name/se/sequin/package.nix new file mode 100644 index 0000000000000..aa549c87b63ba --- /dev/null +++ b/pkgs/by-name/se/sequin/package.nix @@ -0,0 +1,32 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "sequin"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "charmbracelet"; + repo = "sequin"; + rev = "refs/tags/v${version}"; + hash = "sha256-uXfpsrjkJ/qdzoaJXY4vJJPEgcnH7wwFvfHskmEK5VA="; + }; + + vendorHash = "sha256-gdFmvLnf5xW7MKOlRueeoLDTCs7LgMtKiVHS0PAwomc="; + + ldflags = [ + "-X main.Version=${version}" + ]; + + meta = { + description = "Human-readable ANSI sequences"; + homepage = "https://github.com/charmbracelet/sequin"; + changelog = "https://github.com/charmbracelet/sequin/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ caarlos0 ]; + mainProgram = "sequin"; + }; +}