pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / ra / railway / package.nix
bloba31b2ae9ec923c2406c82a14d07e582ce2f493b6
2   lib,
3   darwin,
4   rustPlatform,
5   fetchFromGitHub,
6   pkg-config,
7   openssl,
8   stdenv,
9 }:
10 let
11   inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
13 rustPlatform.buildRustPackage rec {
14   pname = "railway";
15   version = "3.17.10";
17   src = fetchFromGitHub {
18     owner = "railwayapp";
19     repo = "cli";
20     rev = "v${version}";
21     hash = "sha256-WrNWtVlvEscyo/MOQEf+MikxHCKIqfKWfhPtV0DVhXM=";
22   };
24   cargoHash = "sha256-C1lqK60asOW9Kl3cNgJvdDtZEtPUOE/SbBww0qL3fsU=";
26   nativeBuildInputs = [ pkg-config ];
28   buildInputs =
29     [ openssl ]
30     ++ lib.optionals stdenv.hostPlatform.isDarwin [
31       CoreServices
32       Security
33       SystemConfiguration
34     ];
36   OPENSSL_NO_VENDOR = 1;
38   meta = with lib; {
39     mainProgram = "railway";
40     description = "Railway.app CLI";
41     homepage = "https://github.com/railwayapp/cli";
42     changelog = "https://github.com/railwayapp/cli/releases/tag/v${version}";
43     license = licenses.mit;
44     maintainers = with maintainers; [
45       Crafter
46       techknowlogick
47     ];
48   };