Commit b20ffc17 authored by Sam Willcocks's avatar Sam Willcocks
Browse files

owncast: fix ffmpeg issues with systemd

The `bash` and `which` wrapper dependencies were mistakenly removed last
package update.
The package works when run manually since you already have bash and
which in your path. Only when isolated in systemd does the issue emerge.
parent 59bdd40c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
, buildGoModule
, fetchFromGitHub
, nixosTests
, bash
, which
, ffmpeg
, makeBinaryWrapper
}:
@@ -25,7 +27,7 @@ in buildGoModule {

  postInstall = ''
    wrapProgram $out/bin/owncast \
      --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
      --prefix PATH : ${lib.makeBinPath [ bash which ffmpeg ]}
  '';

  installCheckPhase = ''