From eeb0d51709567a32787af0d22304af9813bac8cc Mon Sep 17 00:00:00 2001
From: Julien Malka <julien@malka.sh>
Date: Fri, 10 Feb 2023 19:24:30 +0100
Subject: [PATCH] feat: proper nixpkgs compliant update of uptime-kuma

---
 packages/uptime-kuma/default.nix | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/uptime-kuma/default.nix b/packages/uptime-kuma/default.nix
index f37eab0..1686e6a 100644
--- a/packages/uptime-kuma/default.nix
+++ b/packages/uptime-kuma/default.nix
@@ -13,11 +13,15 @@ buildNpmPackage rec {
 
   npmDepsHash = "sha256-lVMPxUe+W/FlFQS2L+/UfpC21pIKJE89clmJywSv7w4=";
 
-  patches = [ ./fix-database-permissions.patch ];
+  patches = [
+    # Fixes the permissions of the database being not set correctly
+    # See https://github.com/louislam/uptime-kuma/pull/2119
+    ./fix-database-permissions.patch
+  ];
 
   nativeBuildInputs = [ python3 ];
 
-  CYPRESS_INSTALL_BINARY = 0;
+  CYPRESS_INSTALL_BINARY = 0; # Stops Cypress from trying to download binaries
 
   postInstall = ''
     cp -r dist $out/lib/node_modules/uptime-kuma/