1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "url-parser";
8 version = "1.0.6";
9
10 src = fetchFromGitHub {
11 owner = "thegeeklab";
12 repo = "url-parser";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-YZAcu1TDPTE2vLA9vQNWHhGIRQs4hkGAmz/zi27n0H0=";
15 };
16
17 vendorHash = "sha256-8doDVHyhQKsBeN1H73KV/rxhpumDLIzjahdjtW79Bek=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X" "main.BuildVersion=${version}"
23 "-X" "main.BuildDate=1970-01-01"
24 ];
25
26 meta = with lib; {
27 description = "Simple command-line URL parser";
28 homepage = "https://github.com/thegeeklab/url-parser";
29 changelog = "https://github.com/thegeeklab/url-parser/releases/tag/v${version}";
30 license = licenses.mit;
31 maintainers = with maintainers; [ doronbehar ];
32 };
33}