depot/third_party/nixpkgs/pkgs/development/tools/railway/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

28 lines
614 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "railway";
version = "2.0.8";
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-E6DCY+xM796pQb48xkVQ6d3qgIB528hbCU96SCu2eYI=";
};
ldflags = [ "-s" "-w" ];
vendorSha256 = "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 ];
};
}