goimapnotify: patch sh with runtimeShell

sh is not on PATH in some environments (see #111688).
This commit is contained in:
William O'Hanley 2021-02-03 15:36:26 -08:00
parent ca14ff0777
commit b2342c9aea

View file

@ -1,4 +1,4 @@
{ buildGoPackage, fetchFromGitLab, lib }:
{ buildGoPackage, fetchFromGitLab, lib, runtimeShell }:
buildGoPackage rec {
pname = "goimapnotify";
@ -13,6 +13,10 @@ buildGoPackage rec {
sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
};
postPatch = ''
substituteInPlace command.go --replace '"sh"' '"${runtimeShell}"'
'';
goDeps = ./deps.nix;
meta = with lib; {