nixpkgs/pkgs/by-name/ra/railway/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.0 KiB
Nix
Raw Normal View History

2024-08-03 04:27:18 +00:00
{
lib,
2024-08-03 04:29:12 +00:00
darwin,
2024-08-03 04:27:18 +00:00
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
stdenv,
}:
2024-08-03 04:29:12 +00:00
let
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
in
2023-03-11 07:17:36 +00:00
rustPlatform.buildRustPackage rec {
2022-07-24 01:56:33 +00:00
pname = "railway";
version = "3.18.0";
2022-07-24 01:56:33 +00:00
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
hash = "sha256-KMmiVA6ubwX8n2MVBOTfsT+05ii89DToMSxpINuizEc=";
2022-07-24 01:56:33 +00:00
};
cargoHash = "sha256-sDDNZAUt+4H1smA+8Pynu1EQtAdP2U6nHwC7AWo5gnk=";
2022-07-24 01:56:33 +00:00
2023-03-11 07:17:36 +00:00
nativeBuildInputs = [ pkg-config ];
2022-07-24 01:56:33 +00:00
2024-08-03 04:27:18 +00:00
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreServices
Security
SystemConfiguration
];
2023-03-11 07:17:36 +00:00
OPENSSL_NO_VENDOR = 1;
2022-07-24 01:56:33 +00:00
meta = with lib; {
2023-03-11 07:17:36 +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-07-24 01:56:33 +00:00
license = licenses.mit;
2024-08-03 04:27:18 +00:00
maintainers = with maintainers; [
Crafter
techknowlogick
];
2022-07-24 01:56:33 +00:00
};
}