From cf0da6d13edc55c003564f31d56a659cfa681e0c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 18 Jun 2024 12:20:06 +0200 Subject: remove flake and docker setup --- shell.nix | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index d2c4c45..17cd5ce 100644 --- a/shell.nix +++ b/shell.nix @@ -1,3 +1,36 @@ -{ system ? builtins.currentSystem }: +{ pkgs ? ( + let + sources = import ./npins; + in + import sources.nixpkgs { + overlays = [ + (import "${sources.gomod2nix}/overlay.nix") + ]; + } + ) +}: +let + goEnv = pkgs.mkGoEnv { pwd = ./.; }; + inherit (import ./.) pre-commit-check; +in +pkgs.mkShell { + inherit (pre-commit-check) shellHook; + packages = with pkgs; [ + goEnv -(builtins.getFlake (toString ./.)).devShells.${system}.default + npins + gopls + gotools + go-tools + gci + hyperlink + systemfd + just + modd + + skopeo + flyctl + nodePackages.vercel + netlify-cli + ]; +} -- cgit 1.4.1