merge-after-ci: move away from writePython3Bin

this is one is doing checks we don't want because we already have ruff.
This commit is contained in:
Jörg Thalheim
2025-08-26 12:33:27 +02:00
parent e6066a6cb1
commit f634b8f1fb

View File

@@ -1,6 +1,8 @@
{
stdenv,
makeWrapper,
python3,
bash,
callPackage,
coreutils,
git,
lib,
@@ -10,22 +12,37 @@
tea-create-pr,
...
}:
let
writers = callPackage ../builders/script-writers.nix { };
in
writers.writePython3Bin "merge-after-ci" {
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [
bash
coreutils
git
nix
openssh
tea
tea-create-pr
])
];
} ./merge-after-ci.py
stdenv.mkDerivation {
pname = "merge-after-ci";
version = "0.1.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python3 ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp merge-after-ci.py $out/bin/merge-after-ci
chmod +x $out/bin/merge-after-ci
wrapProgram $out/bin/merge-after-ci \
--prefix PATH : ${
lib.makeBinPath [
bash
coreutils
git
nix
openssh
tea
tea-create-pr
python3
]
}
runHook postInstall
'';
}