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

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

33 lines
885 B
Nix
Raw Normal View History

2023-03-11 07:17:36 +00:00
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, CoreServices
, Security }:
2022-07-24 01:56:33 +00:00
2023-03-11 07:17:36 +00:00
rustPlatform.buildRustPackage rec {
2022-07-24 01:56:33 +00:00
pname = "railway";
2023-12-09 13:05:22 +00:00
version = "3.5.2";
2022-07-24 01:56:33 +00:00
src = fetchFromGitHub {
owner = "railwayapp";
repo = "cli";
rev = "v${version}";
2023-12-09 13:05:22 +00:00
hash = "sha256-QlynZgmDd7m7m17J5lUTmejkKdQlfjiqcXg4ZMFp0vc=";
2022-07-24 01:56:33 +00:00
};
2023-12-09 13:05:22 +00:00
cargoHash = "sha256-TOuxJL2UtMA9mZLHZVQDD6lyL9VWy/HBNfezhOGbSG8=";
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
2023-03-11 07:17:36 +00:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
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;
maintainers = with maintainers; [ Crafter techknowlogick ];
2022-07-24 01:56:33 +00:00
};
}