summary refs log tree commit diff
path: root/pkgs/servers/adguardhome/default.nix
blob: 34f64edc6ba3ea6702e0f10514bb9528e4b64460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, fetchzip, system ? stdenv.targetPlatform }:

stdenv.mkDerivation rec {
  pname = "adguardhome";
  version = "0.106.3";

  src = (import ./bins.nix { inherit fetchurl fetchzip; }).${system};

  installPhase = ''
    install -m755 -D ./AdGuardHome $out/bin/adguardhome
  '';

  passthru = {
    updateScript = ./update.sh;
  };

  meta = with lib; {
    homepage = "https://github.com/AdguardTeam/AdGuardHome";
    description = "Network-wide ads & trackers blocking DNS server";
    platforms = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
    maintainers = with maintainers; [ numkem iagoq ];
    license = licenses.gpl3Only;
  };
}