2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
darwin,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
openssl,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "railway";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "3.15.1";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "railwayapp";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-2/Yaz+eqZEOh/bCme9DuQep4XDkatr9kw32zN1yn9DQ=";
|
2024-09-19 14:19:46 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-9fO8YmmqyqVp0FYndUnTD6+nSvlV9jzjT+G/iNlZYLo=";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ openssl ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-09-19 14:19:46 +00:00
|
|
|
CoreServices
|
|
|
|
Security
|
|
|
|
SystemConfiguration
|
|
|
|
];
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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
|
|
|
|
techknowlogick
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|