Free and Open-source video streaming suite. https://miracle-tv.live
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

58 lines
1.2 KiB

with import <nixpkgs> {};
# stdenv.mkDerivation {
mkYarnPackage {
name = "miarcle-tv";
version = "0.1.0";
system = builtins.currentSystem;
doDist = false;
# src = fetchgit {
# url = "https://code.gensokyo.social/Gensokyo.social/miracle-tv.git";
# rev = "67a47694fdd59c4e865e5e3f0d762c13b4cf9ca5";
# sha256 = "09mzgiklb8ck4i6jdfa0xf3hhl59fy9iprshjrapp0h16vg98wnv";
# };
#
src = ./.;
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
shellHook = ''
export PATH="$PATH:$PWD/node_modules/.bin"
'';
configurePhase = ''
rm -rf ./node_modules || true
ln -s $node_modules ./node_modules
'';
buildPhase = ''
sh ./bin/buildServer.sh
'';
installPhase = ''
mkdir $out
cp -R ./dist/* $out
mkdir $out/node_modules
cp -R $node_modules/* $out/node_modules/
makeWrapper ${nodejs-14_x}/bin/node $out/bin/miracle-tv-server \
--add-flags $out/server/server.js \
--set NODE_PATH $NODE_PATH:$out:$node_modules
'';
distPhase = ''
true
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = with pkgs; [
yarn automake autoconf m4 git bash
nodejs-14_x libpng libGL gcc
nodePackages.typescript-language-server
];
}