7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
lib,
|
|
darwin,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
stdenv,
|
|
}:
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
|
in
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "railway";
|
|
version = "3.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "railwayapp";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-w52PzDRApKuRgJLYxY8ikqNOo6rC0kLCKWh8tgFzcIY=";
|
|
};
|
|
|
|
cargoHash = "sha256-6VjloZ8s5LqyYPz1uMwdkwvHIhXjmifjd46PIx5d8xQ=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
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
|
|
];
|
|
};
|
|
}
|