Skip to content

Commit

Permalink
Merge pull request #333198 from isabelroses/forgejo-cli
Browse files Browse the repository at this point in the history
forgejo-cli: init at 0.1.1
  • Loading branch information
emilylange authored Aug 13, 2024
2 parents 1fb34e7 + a4433af commit 02fb4b6
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/by-name/fo/forgejo-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
lib,
rustPlatform,
fetchFromGitea,
pkg-config,
libgit2,
oniguruma,
openssl,
zlib,
stdenv,
darwin,
}:
let
version = "0.1.1";
in
rustPlatform.buildRustPackage {
pname = "forgejo-cli";
inherit version;

src = fetchFromGitea {
domain = "codeberg.org";
owner = "Cyborus";
repo = "forgejo-cli";
rev = "v${version}";
hash = "sha256-367O4SpGA0gWM/IIJjIbCoi4+N/Vl58T5Jw/NVsE+7o=";
};

cargoHash = "sha256-F7UBLqMXYS8heJs1mdmiFTHUfgoMKEb+KV4tiDsIRDY=";

nativeBuildInputs = [ pkg-config ];

buildInputs =
[
libgit2
oniguruma
openssl
zlib
]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
]
);

env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};

meta = {
description = "CLI application for interacting with Forgejo";
homepage = "https://codeberg.org/Cyborus/forgejo-cli";
changelog = "https://codeberg.org/Cyborus/forgejo-cli/releases/tag/v${version}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ isabelroses ];
mainProgram = "fj";
};
}

0 comments on commit 02fb4b6

Please sign in to comment.