31 lines
602 B
Nix
31 lines
602 B
Nix
{
|
|
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 = ''
|
|
npm install
|
|
PATH="$(realpath node_modules/.bin):''${PATH}"
|
|
'';
|
|
};
|
|
});
|
|
}
|