2 Achegas 04882723d1 ... b0468f5de9

Autor SHA1 Mensaxe Data
  Johan Rong b0468f5de9 js hai 2 semanas
  Johan Rong 93c49d9491 add js hai 2 semanas
Modificáronse 1 ficheiros con 24 adicións e 0 borrados
  1. 24 0
      data/flake/js/default.nix

+ 24 - 0
data/flake/js/default.nix

@@ -0,0 +1,24 @@
+{
+  description = "Modern Node.js and JavaScript development environment";
+
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+  };
+
+  outputs = { self, nixpkgs }:
+    let
+      supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
+      forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
+        pkgs = import nixpkgs { inherit system; };
+      });
+    in
+  {
+    devShells = forEachSupportedSystem ({ pkgs }: {
+      default = pkgs.mkShell {
+        packages = [
+          pkgs.nodejs_22 
+        ];
+      };
+    });
+  };
+}