Merge pull request #169451 from SuperSandro2000/addlicense
addlicense: init at 1.0.0
This commit is contained in:
commit
742c9f09ba
2 changed files with 29 additions and 0 deletions
27
pkgs/tools/misc/addlicense/default.nix
Normal file
27
pkgs/tools/misc/addlicense/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "addlicense";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = "addlicense";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-Nv7Az3TDtd1P/QWjH92otSV9rIrc2l/mTbGUXhODi7Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -958,6 +958,8 @@ with pkgs;
|
||||||
|
|
||||||
adafruit-ampy = callPackage ../tools/misc/adafruit-ampy { };
|
adafruit-ampy = callPackage ../tools/misc/adafruit-ampy { };
|
||||||
|
|
||||||
|
addlicense = callPackage ../tools/misc/addlicense { };
|
||||||
|
|
||||||
adlplug = callPackage ../applications/audio/adlplug {
|
adlplug = callPackage ../applications/audio/adlplug {
|
||||||
inherit (darwin) libobjc;
|
inherit (darwin) libobjc;
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices WebKit DiscRecording;
|
inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices WebKit DiscRecording;
|
||||||
|
|
Loading…
Reference in a new issue