goimapnotify: patch sh with runtimeShell
sh is not on PATH in some environments (see #111688).
This commit is contained in:
parent
ca14ff0777
commit
b2342c9aea
|
@ -1,4 +1,4 @@
|
||||||
{ buildGoPackage, fetchFromGitLab, lib }:
|
{ buildGoPackage, fetchFromGitLab, lib, runtimeShell }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "goimapnotify";
|
pname = "goimapnotify";
|
||||||
|
@ -13,6 +13,10 @@ buildGoPackage rec {
|
||||||
sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
|
sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace command.go --replace '"sh"' '"${runtimeShell}"'
|
||||||
|
'';
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue