mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #172385 from amesgen/init-radicle-cli
This commit is contained in:
commit
a38c54754c
@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, cmake
|
||||
, installShellFiles
|
||||
, asciidoctor
|
||||
, DarwinTools
|
||||
, openssl
|
||||
, libusb1
|
||||
, AppKit
|
||||
, openssh
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "radicle-cli";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "radicle-dev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LS6zYpMg0LanRL2M8ioGG8Ys07TPT/3hP7geEGehwxg=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-o7ahnV7NnvzKxXb7HdNqKcxekshOtKanYKb0Sy15mhs=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
cmake
|
||||
installShellFiles
|
||||
asciidoctor
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
DarwinTools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
libusb1
|
||||
AppKit
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for f in $(find . -name '*.adoc'); do
|
||||
mf=''${f%.*}
|
||||
asciidoctor --doctype manpage --backend manpage $f -o $mf
|
||||
installManPage $mf
|
||||
done
|
||||
'';
|
||||
|
||||
checkInputs = [ openssh ];
|
||||
preCheck = ''
|
||||
eval $(ssh-agent)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Command-line tooling for Radicle, a decentralized code collaboration network";
|
||||
homepage = "https://radicle.xyz";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = with lib.maintainers; [ amesgen ];
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "rad";
|
||||
};
|
||||
}
|
@ -23186,6 +23186,10 @@ with pkgs;
|
||||
|
||||
radicale = radicale3;
|
||||
|
||||
radicle-cli = callPackage ../applications/version-management/git-and-tools/radicle-cli {
|
||||
inherit (darwin) DarwinTools;
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||
};
|
||||
radicle-upstream = callPackage ../applications/version-management/git-and-tools/radicle-upstream {};
|
||||
|
||||
rake = callPackage ../development/tools/build-managers/rake { };
|
||||
|
Loading…
Reference in New Issue
Block a user