site.lyte.dev/flake.nix

31 lines
602 B
Nix
Raw Normal View History

2023-10-06 17:04:53 -05:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
hugo
gnumake
netlify-cli
nodejs
];
shellHook = ''
2023-11-02 21:03:27 -05:00
npm install
PATH="$(realpath node_modules/.bin):''${PATH}"
2023-10-06 17:04:53 -05:00
'';
};
});
}