default.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | { pkgs ? import <nixpkgs> { } }: let inherit (pkgs) buildGoModule lib; in buildGoModule { pname = "gopkgs"; version = "unstable"; src = lib.sourceFilesBySuffices ./. [ ".go" ".templ" ".mod" ".sum" ]; vendorHash = "sha256-/m5p9HUfyOlC6/aSx7XlEXCDpEi7M5rqzB6K1PDDII8="; ldflags = [ "-s" "-w" ]; meta = with lib; { description = "Site generator for go vanity imports"; homepage = "https://git.alanpearce.eu/gopkgs"; license = licenses.mit; maintainers = with maintainers; [ alanpearce ]; mainProgram = "gopkgs"; }; } |