From b10a057ab8d20c72ff8b3ac19f0a88798a31ff3a Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 11 Apr 2026 22:55:27 +0300 Subject: [PATCH 1/4] init flake with dev shell for node and cypress --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 19 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8ec14d2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1775710090, + "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4c1018dae018162ec878d42fec712642d214fdfa", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..061f3f8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + in { + devShells."${system}".default = let + pkgs = import nixpkgs { inherit system; }; + in pkgs.mkShell { + buildInputs = with pkgs; [ + nodejs_25 + cypress + ]; + }; + }; +} From 6f5688b12cce08c32e87ef9c164bedb213973fcb Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 11 Apr 2026 22:57:08 +0300 Subject: [PATCH 2/4] add php 8.5 to flake --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 061f3f8..6beeb2d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ buildInputs = with pkgs; [ nodejs_25 cypress + php85 ]; }; }; From c2a1d5595ea868dfa7139493cab21fd3a4b3daa9 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 11 Apr 2026 23:02:23 +0300 Subject: [PATCH 3/4] change buildInputs to packages --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6beeb2d..2f6b6f3 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ devShells."${system}".default = let pkgs = import nixpkgs { inherit system; }; in pkgs.mkShell { - buildInputs = with pkgs; [ + packages = with pkgs; [ nodejs_25 cypress php85 From 5d2b847a54f05ed17982862d2d10e2190df013d6 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 11 Apr 2026 23:06:26 +0300 Subject: [PATCH 4/4] declare pkgs according to different convention --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 2f6b6f3..8c2fffd 100644 --- a/flake.nix +++ b/flake.nix @@ -6,10 +6,9 @@ outputs = { self, nixpkgs }: let system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; in { - devShells."${system}".default = let - pkgs = import nixpkgs { inherit system; }; - in pkgs.mkShell { + devShells."${system}".default = pkgs.mkShell { packages = with pkgs; [ nodejs_25 cypress