Skip to content

Commit

Permalink
Merge pull request #220606 from techknowlogick/railway-3
Browse files Browse the repository at this point in the history
railway: 2.1.0 -> 3.0.12
  • Loading branch information
fpletz authored Mar 13, 2023
2 parents 3a63957 + 0d58464 commit e6a1f5f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
28 changes: 16 additions & 12 deletions pkgs/development/tools/railway/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
, Security }:

buildGoModule rec {
rustPlatform.buildRustPackage rec {
pname = "railway";
version = "2.1.0";
version = "3.0.12";

src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-JpIy8u6L7yOZgTFxFft+vhcat3uPT9EvOXAQOmrpvpc=";
hash = "sha256-2RdB/X62/9HKKax+Y+RYPrLEHsWwzOwzJ1Go930bYN0=";
};

ldflags = [ "-s" "-w" ];
cargoHash = "sha256-Aozg/Pyo7JlTEXul3MEfGLwbRo/qjogWeAUHzK8xssc=";

vendorHash = "sha256-nLuomuAScodgLUKzMTiygtFBnNHrqAojOySZgKLVGJY=";
nativeBuildInputs = [ pkg-config ];

postInstall = ''
mv $out/bin/cli $out/bin/railway
'';
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];

OPENSSL_NO_VENDOR = 1;

meta = with lib; {
description = "Railway CLI";
homepage = "https://railway.app";
mainProgram = "railway";
description = "Railway.app CLI";
homepage = "https://github.com/railwayapp/cli";
changelog = "https://github.com/railwayapp/cli/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ Crafter ];
maintainers = with maintainers; [ Crafter techknowlogick ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11488,7 +11488,9 @@ with pkgs;

raider = callPackage ../applications/misc/raider { };

railway = callPackage ../development/tools/railway { };
railway = callPackage ../development/tools/railway {
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
};

quota = if stdenv.isLinux then linuxquota else unixtools.quota;

Expand Down

0 comments on commit e6a1f5f

Please sign in to comment.