From 2c73e6ba3c42de7fba072932430b58aa9c7c33b8 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Wed, 28 Mar 2018 10:01:13 +0300 Subject: [PATCH] diskrsync: add ssh to PATH SSH is a required runtime-only dependency of Diskrsync. This adds SSH to PATH by by using a wrapper. --- pkgs/tools/backup/diskrsync/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/backup/diskrsync/default.nix b/pkgs/tools/backup/diskrsync/default.nix index b04a1dab40f5..2e86ad0deda8 100644 --- a/pkgs/tools/backup/diskrsync/default.nix +++ b/pkgs/tools/backup/diskrsync/default.nix @@ -1,4 +1,4 @@ -{ buildGoPackage, fetchFromGitHub, stdenv }: +{ buildGoPackage, fetchFromGitHub, stdenv, openssh, makeWrapper }: buildGoPackage rec { @@ -16,6 +16,12 @@ buildGoPackage rec { goPackagePath = "github.com/dop251/diskrsync"; goDeps = ./deps.nix; + buildInputs = [ makeWrapper ]; + + preFixup = '' + wrapProgram "$bin/bin/diskrsync" --prefix PATH : ${openssh}/bin + ''; + meta = with stdenv.lib; { description = "Rsync for block devices and disk images"; homepage = https://github.com/dop251/diskrsync;