Skip to content

Commit ffb71cb

Browse files
committedMar 21, 2025
restic: make completion generation platform-dependant
1 parent 5d32a48 commit ffb71cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkgs/tools/backup/restic/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ buildGoModule (finalAttrs: {
4545
''
4646
wrapProgram $out/bin/restic --prefix PATH : '${rclone}/bin'
4747
''
48-
+ lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
48+
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
4949
$out/bin/restic generate \
5050
--bash-completion restic.bash \
5151
--fish-completion restic.fish \

0 commit comments

Comments
 (0)
Failed to load comments.