a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
28 lines
612 B
Nix
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 ];
|
|
};
|
|
}
|