[pkg/darkman] Fix missing bash in darkman
This commit is contained in:
parent
3bc4efe2d9
commit
a6d4ca440f
|
@ -4,11 +4,12 @@
|
||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
scdoc,
|
scdoc,
|
||||||
geoclue2,
|
geoclue2,
|
||||||
|
bash,
|
||||||
}: let
|
}: let
|
||||||
name = "darkman";
|
name = "darkman";
|
||||||
rev = "c2656986c24a7118146b92958c1063d195513c2f";
|
rev = "b4c9bbcd41dfa22e85a01e6c70b57591b8b233fa";
|
||||||
sha256 = "5DXfUmE58W+5aHmMqLJYLjFoUUFhrUEP9Vz5CXmyT2s=";
|
sha256 = "sha256-/r3mcwkdFyZQZV3jRJQladujBFvBmm8XhncbePTFlLA=";
|
||||||
vendorSha256 = "CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic=";
|
vendorSha256 = "sha256-CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic=";
|
||||||
in
|
in
|
||||||
buildGoModule {
|
buildGoModule {
|
||||||
pname = name;
|
pname = name;
|
||||||
|
@ -21,12 +22,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [scdoc];
|
nativeBuildInputs = [scdoc];
|
||||||
propagatedBuildInputs = [geoclue2];
|
propagatedBuildInputs = [geoclue2 bash];
|
||||||
|
|
||||||
inherit vendorSha256;
|
inherit vendorSha256;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i "s|^ExecStart=/usr/bin/darkman run$|ExecStart=$out/bin/darkman run|" darkman.service
|
sed -i "s|^ExecStart=/usr/bin/darkman run$|ExecStart=$out/bin/darkman run|" darkman.service
|
||||||
|
sed -i "s|bash|${bash}/bin/bash|" scripts.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
|
Loading…
Reference in a new issue