all repos — searchix @ 38c96a03c347395af9afe2c0e19266d6caa0ae0c

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

build: enable building with nix with embedded frontend

Alan Pearce
commit

38c96a03c347395af9afe2c0e19266d6caa0ae0c

parent

3bbb49e74b8eab7714c2df1162d086f6d731e1e8

1 file changed, 6 insertions(+), 3 deletions(-)

jump to
M default.nixdefault.nix
@@ -10,7 +10,7 @@ ];
} ) }: -{ +rec { css = pkgs.fetchurl { inherit (sources.simple-css) url sha256; };
@@ -18,8 +18,11 @@
searchix = pkgs.buildGoApplication { pname = "searchix"; version = "0.1"; - pwd = ./.; - src = ./.; + src = builtins.filterSource (_: type: type != "symlink") ./.; + patchPhase = '' + cp ${css} frontend/static/base.css + ''; + tags = [ "embed" ]; modules = ./gomod2nix.toml; };