terragrunt: 0.71.1 -> 0.71.2 (#371855)
[NixPkgs.git] / ci / request-reviews / default.nix
blobb180d60be97c36bd246fb999d00b88cabe70c2de
2   lib,
3   stdenvNoCC,
4   makeWrapper,
5   coreutils,
6   codeowners,
7   jq,
8   curl,
9   github-cli,
10   gitMinimal,
12 stdenvNoCC.mkDerivation {
13   name = "request-reviews";
14   src = lib.fileset.toSource {
15     root = ./.;
16     fileset = lib.fileset.unions [
17       ./get-code-owners.sh
18       ./request-reviewers.sh
19       ./request-code-owner-reviews.sh
20       ./verify-base-branch.sh
21       ./dev-branches.txt
22     ];
23   };
24   nativeBuildInputs = [ makeWrapper ];
25   dontBuild = true;
26   installPhase = ''
27     mkdir -p $out/bin
28     mv dev-branches.txt $out/bin
29     for bin in *.sh; do
30       mv "$bin" "$out/bin"
31       wrapProgram "$out/bin/$bin" \
32         --set PATH ${
33           lib.makeBinPath [
34             coreutils
35             codeowners
36             jq
37             curl
38             github-cli
39             gitMinimal
40           ]
41         }
42     done
43   '';