DEVELOPMENT ENVIRONMENT

~liljamo/liljamo-dev-zola

ref: ec622f55b04c74fd5f093d282fcb813f192d49c4 liljamo-dev-zola/flake.nix -rw-r--r-- 736 bytes
ec622f55Jonni Liljamo feat: umami script a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

  outputs = { self, nixpkgs }: {
    devShells = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (system:
      let
        pkgs = nixpkgs.legacyPackages.${system}.pkgs;
        # https://github.com/NixOS/nixpkgs/blob/340a3345a23ad684a8c328eecc20bb0437e6954d/pkgs/development/haskell-modules/configuration-nix.nix#L1311
        tailwind = pkgs.nodePackages.tailwindcss.overrideAttrs
          (o: { plugins = [ pkgs.nodePackages."@tailwindcss/typography" ]; });
      in {
        default = pkgs.mkShell {
          buildInputs = [
            tailwind
            pkgs.zola
            pkgs.nodePackages."@tailwindcss/language-server"
          ];
        };
      });
  };
}