forgejo-cli: init at 0.1.1

This commit is contained in:
isabel 2024-08-11 12:21:06 +01:00
parent 90ae8433f4
commit a4433af2c3
No known key found for this signature in database
GPG Key ID: 08A97B9A107A1798

View File

@ -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";
};
}