Unverified Commit e6a1f5f4 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #220606 from techknowlogick/railway-3

railway: 2.1.0 -> 3.0.12
parents 3a639575 0d584649
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
{ 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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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;