f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
37 lines
804 B
Nix
37 lines
804 B
Nix
{
|
|
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";
|
|
changelog = "https://github.com/nishanths/license/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ uncenter ];
|
|
mainProgram = "license";
|
|
};
|
|
}
|