From 82cb10cecf00c4e60fbce20152454ab13bacba49 Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 3 Apr 2025 21:57:15 +0300 Subject: [PATCH] i actually wrote some nix code i am so proud of myself i am going to cry just like natsuki subaru i cant believe the lenght of this commit message is getting too long i dont even know if this sentence makes grammatical sense anymore --- modules/services/cloudflare-dyndns.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/cloudflare-dyndns.nix b/modules/services/cloudflare-dyndns.nix index ecc9b5c..a426c67 100644 --- a/modules/services/cloudflare-dyndns.nix +++ b/modules/services/cloudflare-dyndns.nix @@ -7,13 +7,16 @@ let # https://github.com/NixOS/nixpkgs/pull/394352 cloudflare-dyndns-5-3 = pkgs.cloudflare-dyndns.overrideAttrs rec { - version = "5.3"; + version = lib.warnIfNot (pkgs.cloudflare-dyndns.version == "5.0") "The cloudflare-dyndns package is updated, you should remove this override" "5.3"; src = pkgs.fetchFromGitHub { owner = "kissgyorgy"; repo = "cloudflare-dyndns"; rev = "v${version}"; hash = "sha256-t0MqH9lDfl+cAnPYSG7P32OGO8Qpo1ep0Hj3Xl76lhU="; }; + build-system = with pkgs.python3Packages; [ + hatchling + ]; dependencies = with pkgs.python3Packages; [ click httpx