all repos — gopkgs @ 2b4604d343b2df4289ef1295221c3e2a2a5c1532

Go module vanity import paths

write my own version instead

Alan Pearce
commit

2b4604d343b2df4289ef1295221c3e2a2a5c1532

parent

54b0fd19e0c9c68c5d415c8d5cab1e04935f7fd6

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

changed files
M default.nixdefault.nix
@@ -1,28 +1,23 @@
-{ lib -, buildGoModule -, fetchFromGitHub -}: +{ pkgs ? import <nixpkgs> { } }: +let + inherit (pkgs) buildGoModule lib; +in -buildGoModule rec { - pname = "vanity-imports"; - version = "0.0.13-unstable"; +buildGoModule { + pname = "gopkgs"; + version = "unstable"; - src = fetchFromGitHub { - owner = "alanpearce"; - repo = "vanity-imports"; - rev = "95d03037139c6e847d14a35f12496a6fbf2d4370"; - hash = "sha256-YxCPxJqu/e9BK7iTrn4f6ymbwAlU+RHCneO743DeH/w="; - }; + src = lib.sourceFilesBySuffices ./. [ ".go" ".templ" ".mod" ".sum" ]; - vendorHash = "sha256-w0LaXevbGm1xpHvKxxyubHCOVRN712UzLyOd+hVikKg="; + vendorHash = "sha256-ahjgTjV4xXt21DAcVqplVEeZJDszY8amYYb2WENHWq4="; ldflags = [ "-s" "-w" ]; meta = with lib; { - description = "Use a custom domain in your Go import path"; - homepage = "https://github.com/mlcdf/vanity-imports"; + description = "Site generator for go vanity imports"; + homepage = "https://git.alanpearce.eu/gopkgs"; license = licenses.mit; maintainers = with maintainers; [ alanpearce ]; - mainProgram = "vanity-imports"; + mainProgram = "gopkgs"; }; }