summary refs log tree commit diff
path: root/pkgs/applications/networking/sync/rclone/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-09-02 21:21:21 +0000
committerMario Rodas <marsam@users.noreply.github.com>2020-09-02 21:21:21 +0000
commit36782235f608e2d9218a09323f534487ce978e3f (patch)
treef864b2203c9398978ff99be340c50551498c5e2d /pkgs/applications/networking/sync/rclone/default.nix
parent2eacb60353575d49a9a4da29fb382aeea75711a3 (diff)
downloadnixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar.gz
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar.bz2
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar.lz
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar.xz
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.tar.zst
nixpkgs-36782235f608e2d9218a09323f534487ce978e3f.zip
rclone: 1.52.3 -> 1.53.0
Diffstat (limited to 'pkgs/applications/networking/sync/rclone/default.nix')
-rw-r--r--pkgs/applications/networking/sync/rclone/default.nix26
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/applications/networking/sync/rclone/default.nix b/pkgs/applications/networking/sync/rclone/default.nix
index db05056e7e1..35315b729c1 100644
--- a/pkgs/applications/networking/sync/rclone/default.nix
+++ b/pkgs/applications/networking/sync/rclone/default.nix
@@ -1,17 +1,17 @@
-{ stdenv, buildGoPackage, fetchFromGitHub, buildPackages, installShellFiles }:
+{ stdenv, buildGoModule, fetchFromGitHub, buildPackages, installShellFiles }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "rclone";
-  version = "1.52.3";
+  version = "1.53.0";
 
   src = fetchFromGitHub {
     owner = pname;
     repo = pname;
     rev = "v${version}";
-    sha256 = "1bf3rhs4dcb8vkzs4a6pk5xrhnkhqsrbf4xrhcqf407r668gdav1";
+    sha256 = "1736np95di9ksy6i8glzmvzc7qp4d06354gvrnxbzimgf0mm11wn";
   };
 
-  goPackagePath = "github.com/rclone/rclone";
+  vendorSha256 = "1l4iz31k1pylvf0zrp4nhxna70s1ma4981x6q1s3dhszjxil5c88";
 
   subPackages = [ "." ];
 
@@ -19,6 +19,8 @@ buildGoPackage rec {
 
   nativeBuildInputs = [ installShellFiles ];
 
+  buildFlagsArray = [ "-ldflags=-s -w -X github.com/rclone/rclone/fs.Version=${version}" ];
+
   postInstall =
     let
       rcloneBin =
@@ -26,13 +28,13 @@ buildGoPackage rec {
         then "$out"
         else stdenv.lib.getBin buildPackages.rclone;
     in
-      ''
-        installManPage $src/rclone.1
-        for shell in bash zsh fish; do
-          ${rcloneBin}/bin/rclone genautocomplete $shell rclone.$shell
-          installShellCompletion rclone.$shell
-        done
-      '';
+    ''
+      installManPage rclone.1
+      for shell in bash zsh fish; do
+        ${rcloneBin}/bin/rclone genautocomplete $shell rclone.$shell
+        installShellCompletion rclone.$shell
+      done
+    '';
 
   meta = with stdenv.lib; {
     description = "Command line program to sync files and directories to and from major cloud storage";