Loading nixos/modules/services/networking/pihole-ftl-setup-script.nix +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ in if [ ! -f '${cfg.stateDirectory}'/gravity.db ]; then $pihole -g # Send SIGRTMIN to FTL, which makes it reload the database, opening the newly created one ${pkgs.procps}/bin/kill -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name}) ${lib.getExe' pkgs.procps "kill"} -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name}) fi source ${pihole}/usr/share/pihole/advanced/Scripts/api.sh Loading Loading @@ -61,7 +61,7 @@ in for i in 1 2 3; do (TestAPIAvailability) && break echo "Retrying API shortly..." ${pkgs.coreutils}/bin/sleep .5s ${lib.getExe' pkgs.coreutils "sleep"} .5s done; LoginAPI Loading pkgs/by-name/pi/pihole-ftl/package.nix +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "pihole-ftl"; version = "6.1"; version = "6.2.2"; src = fetchFromGitHub { owner = "pi-hole"; repo = "FTL"; tag = "v${finalAttrs.version}"; hash = "sha256-b3/kyDQa6qDK2avvDObWLvwUpAn6TFr1ZBdQC9AZWa4="; hash = "sha256-VFoltLlzKJCeJWQ2SzbvQxcYNBhZtWqFjzO3rjuBAdE="; }; nativeBuildInputs = [ Loading Loading @@ -60,8 +60,8 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail "execv" "execvp" substituteInPlace src/database/network-table.c \ --replace-fail "ip neigh show" "${iproute2}/bin/ip neigh show" \ --replace-fail "ip address show" "${iproute2}/bin/ip address show" --replace-fail "ip neigh show" "${lib.getExe' iproute2 "ip"} neigh show" \ --replace-fail "ip address show" "${lib.getExe' iproute2 "ip"} address show" ''; installPhase = '' Loading @@ -77,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Pi-hole FTL engine"; homepage = "https://github.com/pi-hole/FTL"; changelog = "https://github.com/pi-hole/FTL/releases/tag/v${finalAttrs.version}"; license = lib.licenses.eupl12; maintainers = with lib.maintainers; [ averyvigolo ]; platforms = lib.platforms.linux; Loading Loading
nixos/modules/services/networking/pihole-ftl-setup-script.nix +2 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ in if [ ! -f '${cfg.stateDirectory}'/gravity.db ]; then $pihole -g # Send SIGRTMIN to FTL, which makes it reload the database, opening the newly created one ${pkgs.procps}/bin/kill -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name}) ${lib.getExe' pkgs.procps "kill"} -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name}) fi source ${pihole}/usr/share/pihole/advanced/Scripts/api.sh Loading Loading @@ -61,7 +61,7 @@ in for i in 1 2 3; do (TestAPIAvailability) && break echo "Retrying API shortly..." ${pkgs.coreutils}/bin/sleep .5s ${lib.getExe' pkgs.coreutils "sleep"} .5s done; LoginAPI Loading
pkgs/by-name/pi/pihole-ftl/package.nix +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "pihole-ftl"; version = "6.1"; version = "6.2.2"; src = fetchFromGitHub { owner = "pi-hole"; repo = "FTL"; tag = "v${finalAttrs.version}"; hash = "sha256-b3/kyDQa6qDK2avvDObWLvwUpAn6TFr1ZBdQC9AZWa4="; hash = "sha256-VFoltLlzKJCeJWQ2SzbvQxcYNBhZtWqFjzO3rjuBAdE="; }; nativeBuildInputs = [ Loading Loading @@ -60,8 +60,8 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail "execv" "execvp" substituteInPlace src/database/network-table.c \ --replace-fail "ip neigh show" "${iproute2}/bin/ip neigh show" \ --replace-fail "ip address show" "${iproute2}/bin/ip address show" --replace-fail "ip neigh show" "${lib.getExe' iproute2 "ip"} neigh show" \ --replace-fail "ip address show" "${lib.getExe' iproute2 "ip"} address show" ''; installPhase = '' Loading @@ -77,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Pi-hole FTL engine"; homepage = "https://github.com/pi-hole/FTL"; changelog = "https://github.com/pi-hole/FTL/releases/tag/v${finalAttrs.version}"; license = lib.licenses.eupl12; maintainers = with lib.maintainers; [ averyvigolo ]; platforms = lib.platforms.linux; Loading