From 895a3b061bb4717955ffbceab3bf3c6ecebacd70 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 22:34:23 +0200 Subject: build: switch to flakes --- shell.nix | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 2e85e8c..d2c4c45 100644 --- a/shell.nix +++ b/shell.nix @@ -1,37 +1,3 @@ -{ pkgs ? ( - let - sources = import ./nix/sources.nix; - in - import sources.nixpkgs { - overlays = [ - (import "${sources.gomod2nix}/overlay.nix") - (import ./nix/overlays/default.nix) - ]; - } - ) -}: +{ system ? builtins.currentSystem }: -let - goEnv = pkgs.mkGoEnv { pwd = ./.; }; - searchix = import ./default.nix { - inherit pkgs; - }; -in -pkgs.mkShell { - packages = with pkgs; [ - goEnv - - brotli - bleve - wgo - gomod2nix - niv - nixpkgs-lint - - bun - ]; - shellHook = '' - ${searchix.pre-commit-check.shellHook} - ''; - buildInputs = searchix.pre-commit-check.enabledPackages; -} +(builtins.getFlake (toString ./.)).devShells.${system}.default -- cgit 1.4.1