From 86a920b8d8dedaf60ecb772721a8f928d8d76e48 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Wed, 27 Dec 2023 09:37:06 +0000 Subject: [PATCH] spirit: init at unstable-2023-12-15 --- pkgs/by-name/sp/spirit/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/sp/spirit/package.nix diff --git a/pkgs/by-name/sp/spirit/package.nix b/pkgs/by-name/sp/spirit/package.nix new file mode 100644 index 000000000000..bdff50a53193 --- /dev/null +++ b/pkgs/by-name/sp/spirit/package.nix @@ -0,0 +1,30 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule { + pname = "spirit"; + version = "unstable-2023-12-15"; + + src = fetchFromGitHub { + owner = "cashapp"; + repo = "spirit"; + rev = "3abce3e15c01b18e7a9fc12e19ad5c0f541d1ffd"; + hash = "sha256-B4z5bdb0hRx7U2RLTRDxRYt1ltACNXz/B6qAs4qjtAo="; + }; + + vendorHash = "sha256-hKTQvTWd48mnVODWE6W541TPuxCyELLgpz96XB29kec="; + + subPackages = [ "cmd/spirit" ]; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + homepage = "https://github.com/cashapp/spirit"; + description = "Online schema change tool for MySQL"; + license = licenses.asl20; + maintainers = with maintainers; [ aaronjheng ]; + mainProgram = "spirit"; + }; +}