DEVELOPMENT ENVIRONMENT

~liljamo/felu

cfac1e9ce702432a9e96a9aabde20e65fc40c6a3 — Jonni Liljamo 11 months ago 6b83684
feat: temporarily add go from staging to flake
2 files changed, 28 insertions(+), 7 deletions(-)

M flake.lock
M flake.nix
M flake.lock => flake.lock +20 -3
@@ 23,11 23,11 @@
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1696757521,
        "narHash": "sha256-cfgtLNCBLFx2qOzRLI6DHfqTdfWI+UbvsKYa3b3fvaA=",
        "lastModified": 1697379843,
        "narHash": "sha256-RcnGuJgC2K/UpTy+d32piEoBXq2M+nVFzM3ah/ZdJzg=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "2646b294a146df2781b1ca49092450e8a32814e1",
        "rev": "12bdeb01ff9e2d3917e6a44037ed7df6e6c3df9d",
        "type": "github"
      },
      "original": {


@@ 37,9 37,26 @@
        "type": "github"
      }
    },
    "nixpkgs-staging-next": {
      "locked": {
        "lastModified": 1697522482,
        "narHash": "sha256-PIggwFrGfBihQLyGsewFv8sbx/Z7LPy8MVkImYea9U0=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "c61915bc9615d3995d4f4dae505ae68a359eab7b",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "staging-next",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs",
        "nixpkgs-staging-next": "nixpkgs-staging-next",
        "templ": "templ"
      }
    },

M flake.nix => flake.nix +8 -4
@@ 1,13 1,14 @@
{
  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, templ }:
  outputs = inputs@{ self, nixpkgs, nixpkgs-staging-next, templ }:
  let
    allSystems = [
      "x86_64-linux"


@@ 15,15 16,18 @@

    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, templ-pkg }: {
    devShells = forAllSystems ({ pkgs, pkgs-staging-next, templ-pkg }: {
      default = pkgs.mkShell {
        buildInputs = [
          pkgs.go
          pkgs.gopls
          #pkgs.go
          #pkgs.gopls
          pkgs-staging-next.go
          pkgs-staging-next.gopls

          # sqlite web inspector for developing
          pkgs.sqlite-web