flake-update-20260505
 1{
 2  lib,
 3  stdenv,
 4  makeWrapper,
 5  git,
 6  nix,
 7  jq,
 8  curl,
 9  openssh,
10  pi-coding-agent,
11}:
12
13stdenv.mkDerivation {
14  pname = "nix-flake-update";
15  version = "0.2.0";
16
17  src = ./.;
18
19  nativeBuildInputs = [ makeWrapper ];
20
21  installPhase = ''
22    runHook preInstall
23
24    mkdir -p $out/bin
25    cp nix-flake-update.sh $out/bin/nix-flake-update
26    chmod +x $out/bin/nix-flake-update
27
28    wrapProgram $out/bin/nix-flake-update \
29      --prefix PATH : ${
30        lib.makeBinPath [
31          git
32          nix
33          jq
34          curl
35          openssh
36          pi-coding-agent
37        ]
38      }
39
40    runHook postInstall
41  '';
42
43  meta = with lib; {
44    description = "Automated NixOS flake.lock updater with build verification";
45    license = licenses.mit;
46    platforms = platforms.linux;
47  };
48}