1 { lib, stdenv, fetchurl, fetchzip, nixosTests }:
4 inherit (stdenv.hostPlatform) system;
5 sources = import ./bins.nix { inherit fetchurl fetchzip; };
8 stdenv.mkDerivation rec {
11 src = sources.${system} or (throw "Source for ${pname} is not available for ${system}");
14 install -m755 -D ./AdGuardHome $out/bin/adguardhome
18 updateScript = ./update.sh;
20 tests.adguardhome = nixosTests.adguardhome;
24 homepage = "https://github.com/AdguardTeam/AdGuardHome";
25 description = "Network-wide ads & trackers blocking DNS server";
26 platforms = builtins.attrNames sources;
27 maintainers = with maintainers; [ numkem iagoq rhoriguchi ];
28 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
29 license = licenses.gpl3Only;
30 mainProgram = "adguardhome";