Merge pull request #78107 from 1000101/morph
morph: add openssh to PATH
This commit is contained in:
commit
34996ef30c
@ -1,4 +1,4 @@
|
|||||||
{ buildGoPackage, fetchFromGitHub, go-bindata, lib }:
|
{ buildGoPackage, fetchFromGitHub, go-bindata, openssh, makeWrapper, lib }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "morph";
|
pname = "morph";
|
||||||
@ -14,6 +14,7 @@ buildGoPackage rec {
|
|||||||
goPackagePath = "github.com/dbcdk/morph";
|
goPackagePath = "github.com/dbcdk/morph";
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ go-bindata ];
|
buildInputs = [ go-bindata ];
|
||||||
|
|
||||||
buildFlagsArray = ''
|
buildFlagsArray = ''
|
||||||
@ -29,6 +30,7 @@ buildGoPackage rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $lib
|
mkdir -p $lib
|
||||||
cp -v $src/data/*.nix $lib
|
cp -v $src/data/*.nix $lib
|
||||||
|
wrapProgram $bin/bin/morph --prefix PATH : ${lib.makeBinPath [ openssh ]};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "bin" "lib" ];
|
outputs = [ "out" "bin" "lib" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user