From 9c9f8daa9a5b09b6742fdf90d79aad054ae68e97 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 22 Nov 2025 18:06:26 +0100 Subject: [PATCH] Attempt at sing older nodejs/py --- .idea/data_source_mapping.xml | 6 -- .idea/workspace.xml | 15 +++- nix/flake-webrtc/flake.lock | Bin 0 -> 1494 bytes nix/flake-webrtc/flake.nix | 155 ++++++++++++++++++++++++++++++++++ 4 files changed, 168 insertions(+), 8 deletions(-) delete mode 100644 .idea/data_source_mapping.xml create mode 100644 nix/flake-webrtc/flake.lock create mode 100644 nix/flake-webrtc/flake.nix diff --git a/.idea/data_source_mapping.xml b/.idea/data_source_mapping.xml deleted file mode 100644 index c2a7ad0fd..000000000 --- a/.idea/data_source_mapping.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 11e173ef7..93c1954aa 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -111,18 +111,28 @@ + - + + + + + + + + + + - @@ -149,6 +159,7 @@ + diff --git a/nix/flake-webrtc/flake.lock b/nix/flake-webrtc/flake.lock new file mode 100644 index 0000000000000000000000000000000000000000..20b915f500387a1e4f8c4da0732176c11c897e7e GIT binary patch literal 1494 zcmbtUO>>(t6ujqGc(}H1B!Rv<(?gr7O&UAyxUoAu3M8-!1`OD-oymVMV3Wub)1=c2 zA5ZA*YIh$G7rma9q*4{u$KFHrQoRPTh*W=F>iD@>m35M>OS4kdid|8vWnFxFY|KAdj85r&qVl>=vR;;2DswGYSz0fdhc>q6 zYE!R5NCA~T3J7FUV#gPZ+T61NSH2VY069`&$~?1kxyw|&H`L`~?O88$Npl_QM8wrM z2jLrK{)1}=U;})#!%Flvi$c@IxA_Ac!~uhjAsE#rLnYfjke zdh^|lW?bK;>GF0k6rtYE&iiw#x04^HhOIj-Z3F)33yR+Pi zc%a(Epbg~-;`30qxqMSb2!jAIhFGiP*%_YiV7|hi#dJN|Pqu!^lD%_B?&EMbo6`Mg zR*h7|mtU?ZVdpbaouc0|G>}@Ar3%D4E>8_;W>^YB0Vl%txEEj|IFyiZ01>wphMvHl u!v&%ze}@i(THM!?^6y+b01y6D*Jh5bV "$TMPFILE" + mv -- "$TMPFILE" hashes.json + ''; + }; + + update-nix-flake = pkgs.writeShellApplication { + name = "update-nix"; + runtimeInputs = with pkgs; [ + prefetch-npm-deps + nix + jq + ]; + text = '' + nix flake update --extra-experimental-features 'nix-command flakes' + ''; + }; + }; + + containers.docker = pkgs.dockerTools.buildLayeredImage { + name = "spacebar-server-ts"; + tag = builtins.replaceStrings [ "+" ] [ "_" ] self.packages.${system}.default.version; + contents = [ self.packages.${system}.default ]; + config = { + Cmd = [ "${self.outputs.packages.${system}.default}/bin/start-bundle" ]; + Expose = [ "3001" ]; + }; + }; + + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ + nodejs_20 + python310 + nodePackages.typescript + nodePackages.patch-package + nodePackages.prettier + ]; + }; + } + ) + // { + nixosModules.default = import ./nix/modules/default self; + checks = + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + in + pkgs.lib.recursiveUpdate (pkgs.lib.attrsets.unionOfDisjoint { } self.packages) { + x86_64-linux = { + spacebar-server-tests = self.packages.x86_64-linux.default.passthru.tests; + docker-image = self.containers.x86_64-linux.docker; + }; + }; + }; +}