depot/third_party/nixpkgs/pkgs/tools/misc/addlicense/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

27 lines
672 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "addlicense";
version = "1.1.0";
src = fetchFromGitHub {
owner = "google";
repo = "addlicense";
rev = "v${version}";
sha256 = "sha256-Vi+U0b9tTJitStZr1wSotr82Y2gA4IjvHLAa+rwGH/g=";
};
vendorSha256 = "sha256-2mncc21ecpv17Xp8PA9GIodoaCxNBacbbya/shU8T9Y=";
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 ];
};
}