about summary refs log tree commit diff
path: root/pkgs/by-name/li/license-go/package.nix
blob: 2aa87c802070f5a8bde7afe474a59e9767f7e63a (plain) (blame)
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
29
30
31
32
33
34
35
36
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:
let
  version = "5.0.4";
in
buildGoModule {
  pname = "license-go";
  inherit version;

  src = fetchFromGitHub {
    owner = "nishanths";
    repo = "license";
    rev = "v${version}";
    hash = "sha256-Rz/eIGa3xLjirPMOs4otfmwy4OzJgopKPbka2OKt8Fo=";
  };

  vendorHash = "sha256-kx3lPhmEo515sHgHBqDC6udz6xkZvB+nn6x3/JaBHbo=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${version}"
    "-X main.builtBy=nixpkgs"
  ];

  meta = {
    description = "Command line license text generator";
    homepage = "https://github.com/nishanths/license";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ uncenter ];
    mainProgram = "license";
  };
}