mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
42 lines
975 B
Nix
42 lines
975 B
Nix
{ lib
|
|
, installShellFiles
|
|
, makeWrapper
|
|
, stdenv
|
|
, ffmpeg-headless
|
|
, procps
|
|
, yq-go
|
|
}:
|
|
let
|
|
runtimePaths = [
|
|
ffmpeg-headless
|
|
procps
|
|
yq
|
|
];
|
|
versionMatches =
|
|
builtins.match ''
|
|
.*
|
|
readonly[[:blank:]]VERSION="([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)"
|
|
.*
|
|
'' (builtins.readFile ./stream-sprout);
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "stream-sprout";
|
|
version = builtins.concatStringsSep "" versionMatches;
|
|
src = lib.cleanSource ./.;
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 -t "$out/bin" stream-sprout
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Re-stream a video source to multiple destinations such as Twitch, YouTube, and Owncast.";
|
|
homepage = "https://github.com/wimpys-world/stream-sprout";
|
|
mainProgram = "stream-sprout";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ flexiondotorg ];
|
|
};
|
|
}
|