depot/third_party/nixpkgs/pkgs/development/tools/railway/default.nix

33 lines
885 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
, Security }:
rustPlatform.buildRustPackage rec {
pname = "railway";
version = "3.5.1";
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
hash = "sha256-XzDxfjXY7Mu6qDZ66r3c0/RDBQF7wCONZTpfQ0j1B1c=";
};
cargoHash = "sha256-J/ecoC8efv0IfAta7Ug0g7N/2jGV+DOACgbhXVfNK3k=";
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 ];
};
}