chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / fo / forgejo-cli / package.nix
blobee49edd29110c3e74a8ea734f507def5ff3f41b1
2   lib,
3   rustPlatform,
4   fetchFromGitea,
5   pkg-config,
6   libgit2,
7   oniguruma,
8   openssl,
9   zlib,
10   stdenv,
11   darwin,
13 let
14   version = "0.1.1";
16 rustPlatform.buildRustPackage {
17   pname = "forgejo-cli";
18   inherit version;
20   src = fetchFromGitea {
21     domain = "codeberg.org";
22     owner = "Cyborus";
23     repo = "forgejo-cli";
24     rev = "v${version}";
25     hash = "sha256-367O4SpGA0gWM/IIJjIbCoi4+N/Vl58T5Jw/NVsE+7o=";
26   };
28   cargoHash = "sha256-F7UBLqMXYS8heJs1mdmiFTHUfgoMKEb+KV4tiDsIRDY=";
30   nativeBuildInputs = [ pkg-config ];
32   buildInputs =
33     [
34       libgit2
35       oniguruma
36       openssl
37       zlib
38     ]
39     ++ lib.optionals stdenv.hostPlatform.isDarwin (
40       with darwin.apple_sdk.frameworks;
41       [
42         Security
43         SystemConfiguration
44       ]
45     );
47   env = {
48     RUSTONIG_SYSTEM_LIBONIG = true;
49   };
51   meta = {
52     description = "CLI application for interacting with Forgejo";
53     homepage = "https://codeberg.org/Cyborus/forgejo-cli";
54     changelog = "https://codeberg.org/Cyborus/forgejo-cli/releases/tag/v${version}";
55     license = with lib.licenses; [
56       asl20
57       mit
58     ];
59     maintainers = with lib.maintainers; [ isabelroses ];
60     mainProgram = "fj";
61   };