nixpkgs/pkgs/tools/misc/url-parser/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
784 B
Nix
Raw Normal View History

2023-07-15 08:38:22 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "url-parser";
2023-08-26 10:55:53 +00:00
version = "1.0.5";
2023-07-15 08:38:22 +00:00
src = fetchFromGitHub {
owner = "thegeeklab";
repo = "url-parser";
2023-08-26 15:00:35 +00:00
rev = "refs/tags/v${version}";
2023-08-26 10:55:53 +00:00
hash = "sha256-A+uoxwPdWdy12Avl2Ci+zd9TFmQFA22pMbsxtWpNPpc=";
2023-07-15 08:38:22 +00:00
};
2023-08-26 10:55:53 +00:00
vendorHash = "sha256-8doDVHyhQKsBeN1H73KV/rxhpumDLIzjahdjtW79Bek=";
2023-07-15 08:38:22 +00:00
ldflags = [
"-s"
"-w"
"-X" "main.BuildVersion=${version}"
"-X" "main.BuildDate=1970-01-01"
];
meta = with lib; {
description = "Simple command-line URL parser";
homepage = "https://github.com/thegeeklab/url-parser";
2023-08-26 15:00:35 +00:00
changelog = "https://github.com/thegeeklab/url-parser/releases/tag/v${version}";
2023-07-15 08:38:22 +00:00
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}