all repos — searchix @ 895a3b061bb4717955ffbceab3bf3c6ecebacd70

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: switch to flakes

Alan Pearce
commit

895a3b061bb4717955ffbceab3bf3c6ecebacd70

parent

7077a3748fa545e8dee83d4f3464c55b4b459183

1 file changed, 2 insertions(+), 36 deletions(-)

changed files
M shell.nixshell.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) - ]; - } - ) -}: - -let - goEnv = pkgs.mkGoEnv { pwd = ./.; }; - searchix = import ./default.nix { - inherit pkgs; - }; -in -pkgs.mkShell { - packages = with pkgs; [ - goEnv +{ system ? builtins.currentSystem }: - 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