5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
28 lines
615 B
Nix
28 lines
615 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "railway";
|
|
version = "2.0.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "railwayapp";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-g1ljbdRppu4IGEgYxHeaRtG8SvgQ+/+Tir1L1dfuZw4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|