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

View File

@ -498,10 +498,6 @@ 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 {