Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
43 lines
798 B
Nix
43 lines
798 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
makeWrapper,
|
|
coreutils,
|
|
codeowners,
|
|
jq,
|
|
curl,
|
|
github-cli,
|
|
gitMinimal,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
name = "request-reviews";
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.unions [
|
|
./get-reviewers.sh
|
|
./request-reviews.sh
|
|
./verify-base-branch.sh
|
|
./dev-branches.txt
|
|
];
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv dev-branches.txt $out/bin
|
|
for bin in *.sh; do
|
|
mv "$bin" "$out/bin"
|
|
wrapProgram "$out/bin/$bin" \
|
|
--set PATH ${
|
|
lib.makeBinPath [
|
|
coreutils
|
|
codeowners
|
|
jq
|
|
curl
|
|
github-cli
|
|
gitMinimal
|
|
]
|
|
}
|
|
done
|
|
'';
|
|
}
|