blob: b6b82438937ea8bc8c4be8118eb6399e7bf4d2fa (
plain)
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-ahjgTjV4xXt21DAcVqplVEeZJDszY8amYYb2WENHWq4=";
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";
};
}
|