c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
28 lines
615 B
Nix
28 lines
615 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "railway";
|
|
version = "2.0.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "railwayapp";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NYYzMwwRm49YPcXUeriYIXjjK4ZJbbtF9Otr3MWXsiY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|