depot/third_party/nixpkgs/pkgs/by-name/sp/spirit/package.nix

34 lines
680 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "spirit";
version = "0.6.0";
src = fetchFromGitHub {
owner = "cashapp";
repo = "spirit";
rev = "v${version}-prerelease";
hash = "sha256-mI4nO/yQdCrqxCDyOYQPQ905EVreYPEiupe+F4RjIqw=";
};
vendorHash = "sha256-es1PGgLoE3DklnQziRjWmY7f6NNVd24L2JiuLkol6HI=";
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";
};
}