Adding flake.nix

This commit is contained in:
Jean Viscogliosi-Pate 2024-07-31 13:02:04 -07:00
parent 224268bbbd
commit 84215072f0
1 changed files with 28 additions and 0 deletions

28
flake.nix Normal file
View File

@ -0,0 +1,28 @@
{
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
{ systems, nixpkgs, ... }@inputs:
let
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = [
# pkgs.nodejs
# You can set the major version of Node.js to a specific one instead
# of the default version
pkgs.nodejs_20
pkgs.yarn
pkgs.nodePackages.gulp
];
};
});
};
}