diff options
author | Alan Pearce | 2024-07-01 16:46:55 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-01 16:48:16 +0200 |
commit | 2b4604d343b2df4289ef1295221c3e2a2a5c1532 (patch) | |
tree | c6bb3a94d4fcdbdf8b13b1f04fef87d52218ce08 /default.nix | |
parent | 54b0fd19e0c9c68c5d415c8d5cab1e04935f7fd6 (diff) | |
download | gopkgs-main.tar.lz gopkgs-main.tar.zst gopkgs-main.zip |
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/default.nix b/default.nix index 52b4962..b6b8243 100644 --- a/default.nix +++ b/default.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"; }; } |