depot/third_party/nixpkgs/pkgs/development/tools/railway/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

32 lines
885 B
Nix

{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
, Security }:
rustPlatform.buildRustPackage rec {
pname = "railway";
version = "3.3.1";
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
hash = "sha256-RxZa1NH3DpHmrGbNlm85Dv1dydCC344D3lgN0lGVFt8=";
};
cargoHash = "sha256-3ZP4D2cEYzqrupYtKANRaMNNIZ83fTDoUedKCruk6CY=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
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 ];
};
}