2021-09-22 15:38:15 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchzip, system ? stdenv.targetPlatform }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "adguardhome";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.106.3";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${system};
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D ./AdGuardHome $out/bin/adguardhome
|
|
|
|
'';
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://github.com/AdguardTeam/AdGuardHome";
|
|
|
|
description = "Network-wide ads & trackers blocking DNS server";
|
2021-09-22 15:38:15 +00:00
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
|
|
|
|
maintainers = with maintainers; [ numkem iagoq ];
|
|
|
|
license = licenses.gpl3Only;
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
}
|