summary refs log tree commit diff
path: root/pkgs/tools/backup/restic
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-04-28 11:50:57 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-04-28 20:30:29 +1000
commitb5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed (patch)
tree77df5bd7e3c972e12a022ca5fc437c8f67ce9092 /pkgs/tools/backup/restic
parentc59c4e358989ce49afd177e6899549fbb8f8bf7f (diff)
downloadnixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar.gz
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar.bz2
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar.lz
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar.xz
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.tar.zst
nixpkgs-b5dc07a4b471e6f651af3b13e4bd841b6b3ea6ed.zip
treewide: use $out instead of $bin with buildGoPackage
Diffstat (limited to 'pkgs/tools/backup/restic')
-rw-r--r--pkgs/tools/backup/restic/default.nix2
-rw-r--r--pkgs/tools/backup/restic/rest-server.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/backup/restic/default.nix b/pkgs/tools/backup/restic/default.nix
index df9d613ee44..f366533f9bf 100644
--- a/pkgs/tools/backup/restic/default.nix
+++ b/pkgs/tools/backup/restic/default.nix
@@ -20,7 +20,7 @@ buildGoPackage rec {
   passthru.tests.restic = nixosTests.restic;
 
   postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
-    $bin/bin/restic generate \
+    $out/bin/restic generate \
       --bash-completion restic.bash \
       --zsh-completion restic.zsh \
       --man .
diff --git a/pkgs/tools/backup/restic/rest-server.nix b/pkgs/tools/backup/restic/rest-server.nix
index c7f12cb751b..45a4df74b15 100644
--- a/pkgs/tools/backup/restic/rest-server.nix
+++ b/pkgs/tools/backup/restic/rest-server.nix
@@ -19,7 +19,7 @@ buildGoPackage rec {
   '';
 
   installPhase = ''
-    install -Dt $bin/bin rest-server
+    install -Dt $out/bin rest-server
   '';
 
   meta = with lib; {