2022-01-17 00:39:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchzip, nixosTests }:
|
2020-04-05 20:39:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 22:53:02 +01:00
|
|
|
pname = "adguardhome";
|
2022-03-05 00:30:42 +00:00
|
|
|
version = "0.107.5";
|
2020-04-05 20:39:30 +01:00
|
|
|
|
2021-10-22 22:04:49 +01:00
|
|
|
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${stdenv.hostPlatform.system};
|
2020-04-05 20:39:30 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D ./AdGuardHome $out/bin/adguardhome
|
|
|
|
'';
|
|
|
|
|
2021-05-22 13:09:35 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
2022-01-17 00:39:27 +00:00
|
|
|
tests.adguardhome = nixosTests.adguardhome;
|
2021-05-22 13:09:35 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-05 20:39:30 +01:00
|
|
|
homepage = "https://github.com/AdguardTeam/AdGuardHome";
|
|
|
|
description = "Network-wide ads & trackers blocking DNS server";
|
2021-05-22 13:09:35 +01:00
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
|
|
|
|
maintainers = with maintainers; [ numkem iagoq ];
|
|
|
|
license = licenses.gpl3Only;
|
2020-04-05 20:39:30 +01:00
|
|
|
};
|
|
|
|
}
|