aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate')
-rwxr-xr-xinfra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate31
1 files changed, 0 insertions, 31 deletions
diff --git a/infra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate b/infra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate
deleted file mode 100755
index 2940768b6d2c..000000000000
--- a/infra/libkookie/nixpkgs/nixos/modules/services/video/epgstation/generate
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env -S nix-build --no-out-link
-
-# Script to generate default streaming configurations for EPGStation. There's
-# no need to run this script directly since generate.sh in the EPGStation
-# package directory would run this script for you.
-#
-# Usage: ./generate | xargs cat > streaming.json
-
-{ pkgs ? (import ../../../../.. {}) }:
-
-let
- sampleConfigPath = "${pkgs.epgstation.src}/config/config.sample.json";
- sampleConfig = builtins.fromJSON (builtins.readFile sampleConfigPath);
- streamingConfig = {
- inherit (sampleConfig)
- mpegTsStreaming
- mpegTsViewer
- liveHLS
- liveMP4
- liveWebM
- recordedDownloader
- recordedStreaming
- recordedViewer
- recordedHLS;
- };
-in
-pkgs.runCommand "streaming.json" { nativeBuildInputs = [ pkgs.jq ]; } ''
- jq . <<<'${builtins.toJSON streamingConfig}' > $out
-''
-
-# vim:set ft=nix: