depot/third_party/nixpkgs/pkgs/development/tools/railway/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

28 lines
612 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "railway";
version = "2.1.0";
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-JpIy8u6L7yOZgTFxFft+vhcat3uPT9EvOXAQOmrpvpc=";
};
ldflags = [ "-s" "-w" ];
vendorHash = "sha256-nLuomuAScodgLUKzMTiygtFBnNHrqAojOySZgKLVGJY=";
postInstall = ''
mv $out/bin/cli $out/bin/railway
'';
meta = with lib; {
description = "Railway CLI";
homepage = "https://railway.app";
license = licenses.mit;
maintainers = with maintainers; [ Crafter ];
};
}