mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
Merge pull request #308721 from RobWalt/codeberg-cli
codeberg-cli: 0.3.5 -> 0.4.0
This commit is contained in:
commit
32ca35ad08
@ -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 \
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user