DEVELOPMENT ENVIRONMENT

~liljamo/erya-go

86d59891559f7303eb077defa9180380af5598c3 — Jonni Liljamo 1 year, 1 month ago
feat: flake.nix
2 files changed, 45 insertions(+), 0 deletions(-)

A flake.lock
A flake.nix
A  => flake.lock +27 -0
@@ 1,27 @@
{
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 1696757521,
        "narHash": "sha256-cfgtLNCBLFx2qOzRLI6DHfqTdfWI+UbvsKYa3b3fvaA=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "2646b294a146df2781b1ca49092450e8a32814e1",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

A  => flake.nix +18 -0
@@ 1,18 @@
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  };

  outputs = { self, nixpkgs }:
  let
    pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
  in
  {
    devShells.x86_64-linux.default = pkgs.mkShell {
      buildInputs = with pkgs; [
        go
        gopls
      ];
    };
  };
}