Browse Source

feat: nix?

tags/v0.1.0
Dale 2 months ago
parent
commit
9baa17c23c
4 changed files with 4412 additions and 0 deletions
  1. +8
    -0
      bin/buildServer.sh
  2. +6
    -0
      bin/miracle-tv-server
  3. +17
    -0
      scripts/package.nix
  4. +4381
    -0
      yarn.nix

+ 8
- 0
bin/buildServer.sh View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh

rm -rf ./dist
./node_modules/.bin/tsc

mkdir ./dist/bin
cp ./bin/miracle-tv-server ./dist/bin
chmod +x ./dist/bin/*

+ 6
- 0
bin/miracle-tv-server View File

@@ -0,0 +1,6 @@
#!/usr/bin/env sh

BIN_PATH="$(dirname "$0")"

NODE_PATH=$BIN_PATH/../src
node $BIN_PATH/../src/server/server.js "$0"

+ 17
- 0
scripts/package.nix View File

@@ -0,0 +1,17 @@
with import <nixpkgs> {};

stdenv.mkDerivation {
name = "miarcle-tv";
version = "0.1.0";
system = builtins.currentSystem;

shellHook = ''
export PATH="$PATH:$PWD/node_modules/.bin"
'';

buildInputs = with pkgs; [
yarn automake autoconf m4 git bash
nodejs-14_x libpng libGL gcc
nodePackages.typescript-language-server
];
}

+ 4381
- 0
yarn.nix
File diff suppressed because it is too large
View File


Loading…
Cancel
Save