DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 536e2fa1e10e5eae8f9cd864071903a51525529c felu/flake.nix -rw-r--r-- 1.1 KiB
536e2fa1Jonni Liljamo fix: api key query param in update docs 1 year, 23 days ago
                                                                                
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
32
33
34
35
36
37
38
39
40
41
42
43
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    nixpkgs-staging-next.url = "github:nixos/nixpkgs/staging-next";
    templ = {
      url = "github:a-h/templ?ref=tags/v0.2.364";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs@{ self, nixpkgs, nixpkgs-staging-next, templ }:
  let
    allSystems = [
      "x86_64-linux"
    ];

    forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
      pkgs = import nixpkgs { inherit system; };
      pkgs-staging-next = import nixpkgs-staging-next { inherit system; };
      templ-pkg = inputs.templ.packages.${system}.default;
    });
  in
  {
    devShells = forAllSystems ({ pkgs, pkgs-staging-next, templ-pkg }: {
      default = pkgs.mkShell {
        buildInputs = [
          #pkgs.go
          #pkgs.gopls
          pkgs-staging-next.go
          pkgs-staging-next.gopls

          # sqlite web inspector for developing
          pkgs.sqlite-web

          pkgs.nodePackages.tailwindcss
          pkgs.nodePackages."@tailwindcss/language-server"

          templ-pkg
        ];
      };
    });
  };
}