at 25.11-pre 1.2 kB view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 fetchpatch, 5}: 6buildGoModule { 7 name = "codeowners-validator"; 8 src = fetchFromGitHub { 9 owner = "mszostok"; 10 repo = "codeowners-validator"; 11 rev = "f3651e3810802a37bd965e6a9a7210728179d076"; 12 hash = "sha256-5aSmmRTsOuPcVLWfDF6EBz+6+/Qpbj66udAmi1CLmWQ="; 13 }; 14 patches = [ 15 # https://github.com/mszostok/codeowners-validator/pull/222 16 (fetchpatch { 17 name = "user-write-access-check"; 18 url = "https://github.com/mszostok/codeowners-validator/compare/f3651e3810802a37bd965e6a9a7210728179d076...840eeb88b4da92bda3e13c838f67f6540b9e8529.patch"; 19 hash = "sha256-t3Dtt8SP9nbO3gBrM0nRE7+G6N/ZIaczDyVHYAG/6mU="; 20 }) 21 # Undoes part of the above PR: We don't want to require write access 22 # to the repository, that's only needed for GitHub's native CODEOWNERS. 23 # Furthermore, it removes an unneccessary check from the code 24 # that breaks tokens generated for GitHub Apps. 25 ./permissions.patch 26 # Allows setting a custom CODEOWNERS path using the OWNERS_FILE env var 27 ./owners-file-name.patch 28 ]; 29 postPatch = "rm -r docs/investigation"; 30 vendorHash = "sha256-R+pW3xcfpkTRqfS2ETVOwG8PZr0iH5ewroiF7u8hcYI="; 31}