Created
November 8, 2024 22:49
-
-
Save stelcodes/4f6b5395ac8c0a20853df87403df1dad to your computer and use it in GitHub Desktop.
Basic Node/ PNPM Nix flake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Basic Node/ PNPM Nix flake"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = inputs: | |
inputs.flake-utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = import inputs.nixpkgs { inherit system; }; | |
in | |
{ | |
devShells.default = pkgs.mkShell { | |
packages = [ | |
pkgs.nodejs_22 | |
pkgs.pnpm | |
]; | |
shellHook = '' | |
echo 'Entering Nix dev shell...' | |
''; | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment