-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.nix
49 lines (46 loc) · 1.11 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, installShellFiles
, makeWrapper
, stdenv
, coreutils-full
, ffmpeg-headless
, gawk
, gnugrep
, gnused
, procps
}:
let
runtimePaths = [
coreutils-full
ffmpeg-headless
gawk
gnugrep
gnused
];
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
wrapProgram $out/bin/stream-sprout \
--prefix PATH : "${lib.makeBinPath runtimePaths}"
runHook postInstall
'';
meta = {
description = "Re-stream a video source to multiple destinations such as Twitch, YouTube, and Owncast.";
homepage = "https://github.com/wimpysworld/stream-sprout";
mainProgram = "stream-sprout";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ flexiondotorg ];
};
}