all repos — searchix @ 40002c9144a57af02ec60a11c35c6c2771394c7a

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

build: drop gomod2nix

Alin
commit

40002c9144a57af02ec60a11c35c6c2771394c7a

parent

024cc03b40ba1caf16e26f73a5fef2741663dc7e

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

changed files
M nix/package.nix → nix/package.nix
@@ -1,23 +1,19 @@
{ pkgs ? ( let - inherit (builtins) fetchTree fromJSON readFile; - inherit ((fromJSON (readFile ../flake.lock)).nodes) nixpkgs gomod2nix; + inherit (builtins) fromJSON readFile; + inherit ((fromJSON (readFile ../flake.lock)).nodes) nixpkgs; in - import (fetchTree nixpkgs.locked) { - overlays = [ - (import "${fetchTree gomod2nix.locked}/overlay.nix") - ]; - } + import (fetchTree nixpkgs.locked) { } ), - buildGoApplication ? pkgs.buildGoApplication, + buildGoModule ? pkgs.buildGoModule, css, lib, }: let version = "0.4.10"; in -buildGoApplication { +buildGoModule { pname = "searchix"; inherit version; src =
@@ -34,6 +30,10 @@ ../web
]) (maybeMissing ../frontend/static/base.css); }; + goSum = ../go.sum; + + vendorHash = "sha256-+nf2ylkudbWgyJ42c3dLKxYmf7cHlXuRf40/ilGxcFc="; + subPackages = [ "cmd/searchix-web" ]; patchPhase = ''
@@ -48,8 +48,6 @@
postInstall = '' $out/bin/searchix-web generate-error-page --outdir $out/lib/searchix/ ''; - - modules = ../gomod2nix.toml; doCheck = false;