railway: 2.1.0 -> 3.0.12

This commit is contained in:
techknowlogick 2023-03-11 02:17:36 -05:00
parent 2ce9b9842b
commit fe890091ef
2 changed files with 18 additions and 12 deletions

View File

@ -1,27 +1,31 @@
{ buildGoModule, fetchFromGitHub, lib }: { lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
, Security }:
buildGoModule rec { rustPlatform.buildRustPackage rec {
pname = "railway"; pname = "railway";
version = "2.1.0"; version = "3.0.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "railwayapp"; owner = "railwayapp";
repo = "cli"; repo = "cli";
rev = "v${version}"; 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 = '' buildInputs = [ openssl ]
mv $out/bin/cli $out/bin/railway ++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
'';
OPENSSL_NO_VENDOR = 1;
meta = with lib; { meta = with lib; {
description = "Railway CLI"; mainProgram = "railway";
homepage = "https://railway.app"; description = "Railway.app CLI";
homepage = "https://github.com/railwayapp/cli";
changelog = "https://github.com/railwayapp/cli/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Crafter ]; maintainers = with maintainers; [ Crafter ];
}; };

View File

@ -11483,7 +11483,9 @@ with pkgs;
raider = callPackage ../applications/misc/raider { }; 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; quota = if stdenv.isLinux then linuxquota else unixtools.quota;