audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / ur / url-parser / package.nix
blob413af8fba1b149ed6848c2ac33935ee293e6cd1b
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "url-parser";
9   version = "2.1.2";
11   src = fetchFromGitHub {
12     owner = "thegeeklab";
13     repo = "url-parser";
14     tag = "v${version}";
15     hash = "sha256-IGA+T0Qv3l32UmWciCH2J5G+YGWu0plqSG7yfEtuswM=";
16   };
18   vendorHash = "sha256-Znt8C7B+tSZnzq+3DaycEu0VtkltKhODG9sB5aO99rc=";
20   ldflags = [
21     "-s"
22     "-w"
23     "-X"
24     "main.BuildVersion=${version}"
25     "-X"
26     "main.BuildDate=1970-01-01"
27   ];
29   meta = with lib; {
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 = licenses.mit;
34     maintainers = with maintainers; [ doronbehar ];
35     mainProgram = "url-parser";
36   };