2023-03-15 16:39:30 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
|
|
|
|
, Security }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "railway";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.5.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "railwayapp";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-XzDxfjXY7Mu6qDZ66r3c0/RDBQF7wCONZTpfQ0j1B1c=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-J/ecoC8efv0IfAta7Ug0g7N/2jGV+DOACgbhXVfNK3k=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
mainProgram = "railway";
|
|
|
|
description = "Railway.app CLI";
|
|
|
|
homepage = "https://github.com/railwayapp/cli";
|
|
|
|
changelog = "https://github.com/railwayapp/cli/releases/tag/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mit;
|
2023-03-15 16:39:30 +00:00
|
|
|
maintainers = with maintainers; [ Crafter techknowlogick ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|