build: drop gomod2nix
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;