nix: add check to ensure dependencies packages are up to date

This commit is contained in:
Toast 2025-10-06 20:30:41 +02:00
parent 20ac117c32
commit ba5fe1885c

View file

@ -39,6 +39,19 @@
withSMB = true; 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 = { packages = {
inherit (pkgs) inherit (pkgs)
copyparty copyparty