File tree Expand file tree Collapse file tree
development/libraries/librclone Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments