[pkg/darkman] Fix missing bash in darkman

This commit is contained in:
Malte Tammena 2022-10-08 16:16:45 +02:00
parent 3bc4efe2d9
commit a6d4ca440f

View file

@ -4,11 +4,12 @@
fetchFromGitLab,
scdoc,
geoclue2,
bash,
}: let
name = "darkman";
rev = "c2656986c24a7118146b92958c1063d195513c2f";
sha256 = "5DXfUmE58W+5aHmMqLJYLjFoUUFhrUEP9Vz5CXmyT2s=";
vendorSha256 = "CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic=";
rev = "b4c9bbcd41dfa22e85a01e6c70b57591b8b233fa";
sha256 = "sha256-/r3mcwkdFyZQZV3jRJQladujBFvBmm8XhncbePTFlLA=";
vendorSha256 = "sha256-CGgWEaHztWeCQPIrobwLHuDkFauJM19hBU7JsA3HMic=";
in
buildGoModule {
pname = name;
@ -21,12 +22,13 @@ in
};
nativeBuildInputs = [scdoc];
propagatedBuildInputs = [geoclue2];
propagatedBuildInputs = [geoclue2 bash];
inherit vendorSha256;
patchPhase = ''
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 = ''