aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: b875fd9ef89471de3459d8fcd4302f35c05ceedf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  description = "Dev flake for a simple static website.";
  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  };

  outputs =
    {
      self,
      flake-utils,
      nixpkgs,
    }:
    flake-utils.lib.eachDefaultSystem (
      system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        devShells.default = pkgs.mkShellNoCC {
          nativeBuildInputs = with pkgs; [
            just
            lighttpd
            vscode-langservers-extracted
          ];
        };

        formatter = pkgs.nixfmt;
      }
    );
}