about summary refs log tree commit diff stats
path: root/pkgs/vanity-imports/default.nix
blob: 4c2091969d969192c1260f293ae37277d2c6d0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "vanity-imports";
  version = "0.0.12";

  src = fetchFromGitHub {
    owner = "mlcdf";
    repo = "vanity-imports";
    rev = "v${version}";
    hash = "sha256-4JoJL079hBkwWVvOTRbCM1WZhM7hPlKQ+HEAUr7fWP8=";
  };

  vendorHash = "sha256-w0LaXevbGm1xpHvKxxyubHCOVRN712UzLyOd+hVikKg=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Use a custom domain in your Go import path";
    homepage = "https://github.com/mlcdf/vanity-imports";
    license = licenses.mit;
    maintainers = with maintainers; [ alanpearce ];
    mainProgram = "vanity-imports";
  };
}