base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / license-go / package.nix
blob17491272b426af3a2442547b1ee19508053f9297
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
6 let
7   version = "5.0.4";
8 in
9 buildGoModule {
10   pname = "license-go";
11   inherit version;
13   src = fetchFromGitHub {
14     owner = "nishanths";
15     repo = "license";
16     rev = "v${version}";
17     hash = "sha256-Rz/eIGa3xLjirPMOs4otfmwy4OzJgopKPbka2OKt8Fo=";
18   };
20   vendorHash = "sha256-kx3lPhmEo515sHgHBqDC6udz6xkZvB+nn6x3/JaBHbo=";
22   ldflags = [
23     "-s"
24     "-w"
25     "-X main.version=${version}"
26     "-X main.builtBy=nixpkgs"
27   ];
29   meta = {
30     description = "Command line license text generator";
31     homepage = "https://github.com/nishanths/license";
32     changelog = "https://github.com/nishanths/license/releases/tag/v${version}";
33     license = lib.licenses.mit;
34     maintainers = with lib.maintainers; [ uncenter ];
35     mainProgram = "license";
36   };