mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
addlicense: add nix support
This commit is contained in:
parent
1e0e75ae75
commit
1fbec8a89d
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -14,6 +15,15 @@ buildGoModule rec {
|
||||
sha256 = "sha256-YMMHj6wctKtJi/rrcMIrLmNw/uvO6wCwokgYRQxcsFw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Add support for Nix files. Upstream is slow with responding to PRs,
|
||||
# patch backported from PR https://github.com/google/addlicense/pull/153.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/google/addlicense/commit/e0fb3f44cc7670dcc5cbcec2211c9ad238c5f9f1.patch";
|
||||
hash = "sha256-XCAvL+HEa1hGc0GAnl+oYHKzBJ3I5ArS86vgABrP/Js=";
|
||||
})
|
||||
];
|
||||
|
||||
vendorHash = "sha256-2mncc21ecpv17Xp8PA9GIodoaCxNBacbbya/shU8T9Y=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
Loading…
Reference in New Issue
Block a user