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