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 10:38:22 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "url-parser";
2023-10-22 01:28:15 +02:00
version = "1.0.6";
2023-07-15 10:38:22 +02:00
src = fetchFromGitHub {
owner = "thegeeklab";
repo = "url-parser";
2023-08-26 17:00:35 +02:00
rev = "refs/tags/v${version}";
2023-10-22 01:28:15 +02:00
hash = "sha256-YZAcu1TDPTE2vLA9vQNWHhGIRQs4hkGAmz/zi27n0H0=";
2023-07-15 10:38:22 +02:00
};
2023-08-26 12:55:53 +02:00
vendorHash = "sha256-8doDVHyhQKsBeN1H73KV/rxhpumDLIzjahdjtW79Bek=";
2023-07-15 10:38:22 +02: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 17:00:35 +02:00
changelog = "https://github.com/thegeeklab/url-parser/releases/tag/v${version}";
2023-07-15 10:38:22 +02:00
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}