Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 44 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ fetchFromGitea, installShellFiles, lib, openssl, pkg-config, rustPlatform, stdenv,}:rustPlatform.buildRustPackage rec { pname = "codeberg-cli"; version = "0.4.11";
src = fetchFromGitea { domain = "codeberg.org"; owner = "Aviac"; repo = "codeberg-cli"; rev = "v${version}"; hash = "sha256-wf9Ve7focNBo6fGsjBQpTIx+DtxOo73AIQ9uoV8Q88Q="; };
cargoHash = "sha256-LmLMTnNwxih5HcrMUmQpVdIVz4KeHxcOFtOrNqgGPkA="; nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ openssl ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 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/Aviac/codeberg-cli"; license = with licenses; [ agpl3Plus ]; maintainers = with maintainers; [ robwalt ]; mainProgram = "berg"; };}