Files
nixpkgs/pkgs/by-name/pi/pihole-web/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.2 KiB
Nix

{
stdenv,
lib,
nixosTests,
fetchFromGitHub,
pihole,
pihole-ftl,
procps,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pihole-web";
version = "6.2.1";
src = fetchFromGitHub {
owner = "pi-hole";
repo = "web";
tag = "v${finalAttrs.version}";
hash = "sha256-pfKWOb+DJSRy9r2igx8voRpAPHKshVqYMoxOwoBWZLA=";
};
propagatedBuildInputs = [
pihole
pihole-ftl
procps
];
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -r -t $out/share *.lp img/ scripts/ style/ vendor/
mkdir -p $out/share/doc/$name/
cp README.md $out/share/doc/$name/
runHook postInstall
'';
passthru.tests = nixosTests.pihole-ftl;
meta = {
description = "Pi-hole web dashboard displaying stats and more";
homepage = "https://github.com/pi-hole/web";
changelog = "https://github.com/pi-hole/FTL/releases/tag/v${finalAttrs.version}";
longDescription = ''
Pi-hole's Web interface (based off of AdminLTE) provides a central
location to manage your Pi-hole and review the statistics generated by
FTLDNS.
'';
license = lib.licenses.eupl12;
maintainers = with lib.maintainers; [ averyvigolo ];
platforms = lib.platforms.linux;
};
})