2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "addlicense";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.1.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "addlicense";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-YMMHj6wctKtJi/rrcMIrLmNw/uvO6wCwokgYRQxcsFw=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = "sha256-2mncc21ecpv17Xp8PA9GIodoaCxNBacbbya/shU8T9Y=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ensures source code files have copyright license headers by scanning directory patterns recursively";
|
|
|
|
homepage = "https://github.com/google/addlicense";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "addlicense";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|