diff --git a/.licenseignore b/.licenseignore index 4111e7c..16c3bf3 100644 --- a/.licenseignore +++ b/.licenseignore @@ -19,4 +19,6 @@ package-lock.json rollup.config.js \.editorconfig \.gitignore -\.licenseignore \ No newline at end of file +\.licenseignore +flake.nix +flake.lock \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6fe1939 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1717144377, + "narHash": "sha256-F/TKWETwB5RaR8owkPPi+SPJh83AQsm6KrQAlJ8v/uA=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "805a384895c696f802a9bf5bf4720f37385df547", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9cec21e --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "doipjs"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: + utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShell = with pkgs; mkShell { + buildInputs = [ + nodejs_20 + ]; + + shellHook = '' + echo "node `${pkgs.nodejs_20}/bin/node --version`" + ''; + }; + }); + +} \ No newline at end of file