librclone: init at 1.61.1
This commit is contained in:
parent
f02ae349da
commit
6d9f07d8fe
2 changed files with 35 additions and 0 deletions
33
pkgs/development/libraries/librclone/default.nix
Normal file
33
pkgs/development/libraries/librclone/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, rclone
|
||||
}:
|
||||
|
||||
let
|
||||
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
in buildGoModule rec {
|
||||
pname = "librclone";
|
||||
inherit (rclone) version src vendorSha256;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
cd librclone
|
||||
go build --buildmode=c-shared -o librclone${ext} github.com/rclone/rclone/librclone
|
||||
runHook postBuildd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/lib librclone${ext}
|
||||
install -Dt $out/include librclone.h
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Rclone as a C library";
|
||||
homepage = "https://github.com/rclone/rclone/tree/master/librclone";
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
inherit (rclone.meta) license platforms;
|
||||
};
|
||||
}
|
|
@ -21877,6 +21877,8 @@ with pkgs;
|
|||
|
||||
libqt5pas = libsForQt5.callPackage ../development/compilers/fpc/libqt5pas.nix { };
|
||||
|
||||
librclone = callPackage ../development/libraries/librclone { };
|
||||
|
||||
libroxml = callPackage ../development/libraries/libroxml { };
|
||||
|
||||
librsvg = callPackage ../development/libraries/librsvg {
|
||||
|
|
Loading…
Reference in a new issue