mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
Merge pull request #306090 from uncenter/feat/add-license
license-go: init at 5.0.4
This commit is contained in:
commit
cfb4e10da7
36
pkgs/by-name/li/license-go/package.nix
Normal file
36
pkgs/by-name/li/license-go/package.nix
Normal file
@ -0,0 +1,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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user