From ba5fe1885c026a0ea95a69c738cb153dfdb6be47 Mon Sep 17 00:00:00 2001 From: Toast <39011842+toast003@users.noreply.github.com> Date: Mon, 6 Oct 2025 20:30:41 +0200 Subject: [PATCH] nix: add check to ensure dependencies packages are up to date --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index 336642ee..4609d13d 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,19 @@ withSMB = true; }; + # Make sure that the nix dependencies don't drift away + checks.nix-deps-updated = pkgs.runCommandLocal "nix-deps-updated-check" { } '' + hash="6e3a014f303f86992e75446c3ce3aaf704fc838b850ba3688c9a1f5d358bc9f4" + dockerfilePath="${self.outPath}/scripts/deps-docker/Dockerfile" + + echo "If you can see this, the dependencies dockerfile updated." + echo "Please update the nix packages (if necessary) and the hash on this check" + echo $hash $dockerfilePath | sha256sum --check --status + + # Need to make an empty folder so that Nix doesn't complain + mkdir $out + ''; + packages = { inherit (pkgs) copyparty