summary refs log tree commit diff
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2021-08-07 14:57:59 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-08-07 15:00:29 +1000
commitcd309b9c41f449e4b066663aeb30dc015717b855 (patch)
treeede9b0c84f7dfa6c111ced7ee994825085ae9cef
parentb0f7b71577b4513abad088fc66e339d7a87005db (diff)
downloadnixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar.gz
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar.bz2
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar.lz
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar.xz
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.tar.zst
nixpkgs-cd309b9c41f449e4b066663aeb30dc015717b855.zip
rclone: buildFlagsArray -> ldflags, tags
-rw-r--r--pkgs/applications/networking/sync/rclone/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/sync/rclone/default.nix b/pkgs/applications/networking/sync/rclone/default.nix
index 4b1a0bed048..6e19fb60f8e 100644
--- a/pkgs/applications/networking/sync/rclone/default.nix
+++ b/pkgs/applications/networking/sync/rclone/default.nix
@@ -23,8 +23,9 @@ buildGoModule rec {
   buildInputs = lib.optional enableCmount (if stdenv.isDarwin then macfuse-stubs else fuse);
   nativeBuildInputs = [ installShellFiles makeWrapper ];
 
-  buildFlagsArray = lib.optionals enableCmount [ "-tags=cmount" ]
-    ++ [ "-ldflags=-s -w -X github.com/rclone/rclone/fs.Version=${version}" ];
+  tags = lib.optionals enableCmount [ "cmount" ];
+
+  ldflags = [ "-s" "-w" "-X github.com/rclone/rclone/fs.Version=${version}" ];
 
   postInstall =
     let