Merge pull request #215987 from RobWalt/cod
This commit is contained in:
commit
36ea4a4b6a
|
@ -14228,6 +14228,12 @@
|
||||||
githubId = 1069318;
|
githubId = 1069318;
|
||||||
name = "Robin Lambertz";
|
name = "Robin Lambertz";
|
||||||
};
|
};
|
||||||
|
robwalt = {
|
||||||
|
email = "robwalter96@gmail.com";
|
||||||
|
github = "robwalt";
|
||||||
|
githubId = 26892280;
|
||||||
|
name = "Robert Walter";
|
||||||
|
};
|
||||||
roconnor = {
|
roconnor = {
|
||||||
email = "roconnor@theorem.ca";
|
email = "roconnor@theorem.ca";
|
||||||
github = "roconnor";
|
github = "roconnor";
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib
|
||||||
|
, CoreServices
|
||||||
|
, Security
|
||||||
|
, fetchFromGitea
|
||||||
|
, installShellFiles
|
||||||
|
, openssl
|
||||||
|
, pkg-config
|
||||||
|
, rustPlatform
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "codeberg-cli";
|
||||||
|
version = "0.3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
|
owner = "RobWalt";
|
||||||
|
repo = "codeberg-cli";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-KjH78yqfZoN24TBYyFZuxf7z9poRov0uFYQ8+eq9p/o=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-RE4Zwa5vUWPc42w5GaaYkS6fLIbges1fAsOUuwqR2ag=";
|
||||||
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||||
|
|
||||||
|
buildInputs = [ openssl ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd berg \
|
||||||
|
--bash <($out/bin/berg completion bash) \
|
||||||
|
--fish <($out/bin/berg completion fish) \
|
||||||
|
--zsh <($out/bin/berg completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "CLI Tool for Codeberg similar to gh and glab";
|
||||||
|
homepage = "https://codeberg.org/RobWalt/codeberg-cli";
|
||||||
|
license = with licenses; [ agpl3Plus ];
|
||||||
|
maintainers = with maintainers; [ robwalt ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -475,6 +475,10 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
codeberg-cli = callPackage ../applications/version-management/codeberg-cli {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
conftest = callPackage ../development/tools/conftest { };
|
conftest = callPackage ../development/tools/conftest { };
|
||||||
|
|
||||||
coldsnap = callPackage ../tools/admin/coldsnap {
|
coldsnap = callPackage ../tools/admin/coldsnap {
|
||||||
|
|
Loading…
Reference in a new issue