54 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-04-04 22:52:20 +01:00
{
stdenv,
lib,
fetchFromGitHub,
pihole,
pihole-ftl,
procps,
...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pihole-web";
version = "6.2.1";
2023-04-04 22:52:20 +01:00
src = fetchFromGitHub {
owner = "pi-hole";
repo = "web";
tag = "v${finalAttrs.version}";
hash = "sha256-pfKWOb+DJSRy9r2igx8voRpAPHKshVqYMoxOwoBWZLA=";
2023-04-04 22:52:20 +01:00
};
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
'';
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}";
2023-04-04 22:52:20 +01:00
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 ];
2023-04-04 22:52:20 +01:00
platforms = lib.platforms.linux;
};
})