Skip to content

Commit 6d9f07d

Browse files
committed
librclone: init at 1.61.1
1 parent f02ae34 commit 6d9f07d

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{ lib
2+
, stdenv
3+
, buildGoModule
4+
, rclone
5+
}:
6+
7+
let
8+
ext = stdenv.hostPlatform.extensions.sharedLibrary;
9+
in buildGoModule rec {
10+
pname = "librclone";
11+
inherit (rclone) version src vendorSha256;
12+
13+
buildPhase = ''
14+
runHook preBuild
15+
cd librclone
16+
go build --buildmode=c-shared -o librclone${ext} github.com/rclone/rclone/librclone
17+
runHook postBuildd
18+
'';
19+
20+
installPhase = ''
21+
runHook preInstall
22+
install -Dt $out/lib librclone${ext}
23+
install -Dt $out/include librclone.h
24+
runHook postInstall
25+
'';
26+
27+
meta = {
28+
description = "Rclone as a C library";
29+
homepage = "https://github.com/rclone/rclone/tree/master/librclone";
30+
maintainers = with lib.maintainers; [ dotlambda ];
31+
inherit (rclone.meta) license platforms;
32+
};
33+
}

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21877,6 +21877,8 @@ with pkgs;
2187721877

2187821878
libqt5pas = libsForQt5.callPackage ../development/compilers/fpc/libqt5pas.nix { };
2187921879

21880+
librclone = callPackage ../development/libraries/librclone { };
21881+
2188021882
libroxml = callPackage ../development/libraries/libroxml { };
2188121883

2188221884
librsvg = callPackage ../development/libraries/librsvg {

0 commit comments

Comments
 (0)