mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
0f934189dd
Diff: https://github.com/railwayapp/cli/compare/v3.15.1...v3.17.10 Changelog: https://github.com/railwayapp/cli/releases/tag/v3.17.10
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.17.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "railwayapp";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-WrNWtVlvEscyo/MOQEf+MikxHCKIqfKWfhPtV0DVhXM=";
|
|
};
|
|
|
|
cargoHash = "sha256-C1lqK60asOW9Kl3cNgJvdDtZEtPUOE/SbBww0qL3fsU=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|