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