nixpkgs/pkgs/development/tools/railway/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
615 B
Nix
Raw Normal View History

2022-07-24 04:56:33 +03:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "railway";
2022-08-29 02:29:08 +03:00
version = "2.0.10";
2022-07-24 04:56:33 +03:00
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
2022-08-29 02:29:08 +03:00
sha256 = "sha256-g/QBsWWVjhmn5slNav7j+vrzwf/0mMAERJaDLRrbxGI=";
2022-07-24 04:56:33 +03:00
};
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 ];
};
}