Skip to content

Commit

Permalink
fix: healthchecks-migration service failure due to django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Sep 29, 2024
1 parent 6d6d173 commit 735b87b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hosts/phobos/healthchecks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ in {
services.healthchecks = {
inherit port;
enable = true;
package = pkgs.unstable.healthchecks;
package = pkgs.unstable.healthchecks.overrideAttrs (oldAttrs: {
patches = [
(assert (pkgs.unstable.healthchecks.version == "3.4");
pkgs.fetchpatch {
# Fix migrations in Django 5.1 (see https://github.com/NixOS/nixpkgs/issues/345264)
url = "https://github.com/healthchecks/healthchecks/commit/b5eced26cf9c0d527840220aeb7e414f247d1c1f.patch";
hash = "sha256-p+D1ulDu5Lfom1RFKAB91s+QTuWgNa4KbO4Y4EzOKYE=";
})
];
});

# Pass non-secret settings
settings = {
Expand Down

0 comments on commit 735b87b

Please sign in to comment.