From 09f8d4d3bfcef59703608e3cddfba0d6b039fd01 Mon Sep 17 00:00:00 2001 From: Alberto Zaccagni Date: Mon, 17 Jul 2023 18:20:47 +0200 Subject: [PATCH] nixos conf --- default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..e04b8b4 --- /dev/null +++ b/default.nix @@ -0,0 +1,25 @@ +{ pkgs ? import {} }: + +let + lib = import ; + buildNodeJs = pkgs.callPackage { + python = pkgs.python3; + }; + + nodejsVersion = lib.fileContents ~/.nvmrc; + + nodejs = buildNodeJs { + enableNpm = true; + version = nodejsVersion; + sha256 = "g+AzgeJx8aVhkYjnrqnYXZt+EvW+KijOt41ySe0it/E="; + }; + +in pkgs.mkShell { + packages = with pkgs; [ + python3 + deno + nodejs + nodePackages.npm + nodePackages.typescript + ]; +}