nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6 versionCheckHook,
7}:
8
9buildGoModule (finalAttrs: {
10 pname = "tldx";
11 version = "1.3.0";
12
13 src = fetchFromGitHub {
14 owner = "brandonyoungdev";
15 repo = "tldx";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-JdVngzH6Md7LPV5m8p+C8CW/JRdXlEX19C9+oMTEtDY=";
18 };
19
20 vendorHash = "sha256-Dzeo4ZvbKUow8IF5Lal1GK7sT71IEBPDitYCvNaK4aI=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X github.com/brandonyoungdev/tldx/cmd.Version=${finalAttrs.version}"
26 ];
27
28 passthru.updateScript = nix-update-script { };
29
30 nativeInstallCheckInputs = [
31 versionCheckHook
32 ];
33 doInstallCheck = true;
34
35 meta = {
36 license = lib.licenses.asl20;
37 mainProgram = "tldx";
38 description = "Domain availability research tool";
39 homepage = "https://github.com/brandonyoungdev/tldx";
40 changelog = "https://github.com/brandonyoungdev/tldx/blob/main/CHANGELOG.md";
41 maintainers = with lib.maintainers; [ sylonin ];
42 };
43})