2022-01-17 00:39:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchzip, nixosTests }:
|
2020-04-05 19:39:30 +00:00
|
|
|
|
2022-04-26 21:16:43 +00:00
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
sources = import ./bins.nix { inherit fetchurl fetchzip; };
|
|
|
|
in
|
|
|
|
|
2020-04-05 19:39:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "adguardhome";
|
2022-06-06 15:59:10 +00:00
|
|
|
version = "0.107.7";
|
2022-04-26 21:16:43 +00:00
|
|
|
src = sources.${system} or (throw "Source for ${pname} is not available for ${system}");
|
2020-04-05 19:39:30 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D ./AdGuardHome $out/bin/adguardhome
|
|
|
|
'';
|
|
|
|
|
2021-05-22 12:09:35 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
2022-01-17 00:39:27 +00:00
|
|
|
tests.adguardhome = nixosTests.adguardhome;
|
2021-05-22 12:09:35 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-05 19:39:30 +00:00
|
|
|
homepage = "https://github.com/AdguardTeam/AdGuardHome";
|
|
|
|
description = "Network-wide ads & trackers blocking DNS server";
|
2022-04-26 21:16:43 +00:00
|
|
|
platforms = builtins.attrNames sources;
|
2021-05-22 12:09:35 +00:00
|
|
|
maintainers = with maintainers; [ numkem iagoq ];
|
|
|
|
license = licenses.gpl3Only;
|
2020-04-05 19:39:30 +00:00
|
|
|
};
|
|
|
|
}
|