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.

35 lines
816 B
Nix
Raw Normal View History

2023-07-15 10:38:22 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "url-parser";
2024-03-23 04:05:58 +01:00
version = "2.0.3";
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}";
2024-03-23 04:05:58 +01:00
hash = "sha256-pu6U6YIA7+K1ZSt97Nn0IDaQFVIwMq3m7d8JidK1vJk=";
2023-07-15 10:38:22 +02:00
};
2024-03-23 04:05:58 +01:00
vendorHash = "sha256-QqhjS0uL2Fm2OeFkuAB8VeS7HpoS9dOhgHk/J4j9++M=";
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 ];
2023-11-27 02:17:53 +01:00
mainProgram = "url-parser";
2023-07-15 10:38:22 +02:00
};
}