Merge pull request #308721 from RobWalt/codeberg-cli

codeberg-cli: 0.3.5 -> 0.4.0
This commit is contained in:
Pol Dellaiera 2024-05-12 21:27:13 +02:00 committed by GitHub
commit 32ca35ad08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 19 deletions

View File

@ -1,30 +1,42 @@
{ lib
, CoreServices
, Security
, fetchFromGitea
, installShellFiles
, openssl
, pkg-config
, rustPlatform
, stdenv
{
darwin,
fetchFromGitea,
installShellFiles,
lib,
openssl,
pkg-config,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "codeberg-cli";
version = "0.3.5";
version = "0.4.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "RobWalt";
repo = "codeberg-cli";
rev = "v${version}";
hash = "sha256-KjH78yqfZoN24TBYyFZuxf7z9poRov0uFYQ8+eq9p/o=";
hash = "sha256-g5V3Noqh7Y9v/t/dt7n45/NblqNtpZCKELPc9DOkb8A=";
};
cargoHash = "sha256-RE4Zwa5vUWPc42w5GaaYkS6fLIbges1fAsOUuwqR2ag=";
nativeBuildInputs = [ pkg-config installShellFiles ];
cargoHash = "sha256-zTg/3PcFWzBmKZA7lRIpM3P03d1qpNVBczqWFbnxpic=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin (
let
d = darwin.apple_sdk.frameworks;
in
[
d.CoreServices
d.Security
]
);
postInstall = ''
installShellCompletion --cmd berg \

View File

@ -498,10 +498,6 @@ with pkgs;
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 { };
coldsnap = callPackage ../tools/admin/coldsnap {