all repos — searchix @ 03ebead32af418c6637d2235b1cb9ad5c06e2952

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

chore: set up treefmt-nix and reformat

Alan Pearce
commit

03ebead32af418c6637d2235b1cb9ad5c06e2952

parent

8d2d0bc911591eff2f35b2d3c0eacee06793d4f3

1 file changed, 12 insertions(+), 11 deletions(-)

changed files
M nix/package.nixnix/package.nix
@@ -1,4 +1,5 @@
-{ pkgs ? ( +{ + pkgs ? ( let inherit (builtins) fetchTree fromJSON readFile; inherit ((fromJSON (readFile ../flake.lock)).nodes) nixpkgs gomod2nix;
@@ -8,9 +9,9 @@ overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix") ]; } - ) -, buildGoApplication ? pkgs.buildGoApplication -, css + ), + buildGoApplication ? pkgs.buildGoApplication, + css, }: let version = "0.1.44";
@@ -18,19 +19,19 @@ in
buildGoApplication { pname = "searchix"; inherit version; - src = with pkgs.lib.fileset; toSource { - root = ../.; - fileset = difference - (unions [ + src = + with pkgs.lib.fileset; + toSource { + root = ../.; + fileset = difference (unions [ ../go.mod ../go.sum ../internal ../frontend ../cmd ../web - ]) - (maybeMissing ../frontend/static/base.css); - }; + ]) (maybeMissing ../frontend/static/base.css); + }; subPackages = [ "cmd/searchix-web" ];