mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
diskrsync: add ssh to PATH
SSH is a required runtime-only dependency of Diskrsync. This adds SSH to PATH by by using a wrapper.
This commit is contained in:
parent
831ef4756e
commit
2c73e6ba3c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue