about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/adguardhome/default.nix
blob: 03d2b2ec966604d7f240ead0b3b174c88d28b29c (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
25
{ lib, stdenv, fetchurl, fetchzip, nixosTests }:

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

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

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

  passthru = {
    updateScript = ./update.sh;
    tests.adguardhome = nixosTests.adguardhome;
  };

  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;
  };
}