Skip to content

Commit

Permalink
flake.nix: update during the update script
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron committed May 14, 2024
1 parent 1d22196 commit a0d2253
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ let
autoPrUpdate =
let
updateScripts = {
flake = pkgs.writeShellApplication {
name = "update-flake";
runtimeInputs = with pkgs; [
git
nix
];
text = ''
echo "<details><summary>flake.nix changes</summary>"
# Needed because GitHub's rendering of the first body line breaks down otherwise
echo ""
echo '```'
cd "$1"
nix flake update 2>&1
echo '```'
echo "</details>"
'';
};
npins = pkgs.writeShellApplication {
name = "update-npins";
runtimeInputs = with pkgs; [ npins ];
Expand Down

0 comments on commit a0d2253

Please sign in to comment.