From 58e3d0b4911642aac80c536b072311e22cb4686a Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 18 Apr 2023 16:29:27 +0200 Subject: Build: Add update script This allows to group different update commands together and to raise awareness of the update task. The `grep '[^0-9]_[0-9] flake.lock'` is needed to check if multiple imports exists for the same input as nix will name them 'nixpkgs_1' 'nixpkgs_2' and so on. Having multiple inputs for the same thing just increases the needed storage space, if no other inputs are set to follow, but can break a flake's evaluation because of a partial update e.g., nixpkgs follows our version, but we leave rust-overlay unfollowed. This example would result in a newer cargo version (rust-overlay) getting combined with old packages (nixpkgs), which introduces the aforementioned partial update. --- update | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 update (limited to 'update') diff --git a/update b/update new file mode 100755 index 0000000..6e76b0e --- /dev/null +++ b/update @@ -0,0 +1,5 @@ +#!/bin/sh +# shellcheck disable=SC2086 +nix flake update + +! grep '[^0-9]_[0-9]' flake.lock -- cgit 1.4.1