mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
272ae23966
Diff: https://github.com/railwayapp/cli/compare/v3.17.10...v3.18.0 Changelog: https://github.com/railwayapp/cli/releases/tag/v3.18.0
50 lines
1.0 KiB
Nix
50 lines
1.0 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.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "railwayapp";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-KMmiVA6ubwX8n2MVBOTfsT+05ii89DToMSxpINuizEc=";
|
|
};
|
|
|
|
cargoHash = "sha256-sDDNZAUt+4H1smA+8Pynu1EQtAdP2U6nHwC7AWo5gnk=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|