2022-01-19 23:45:15 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchzip, nixosTests }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
sources = import ./bins.nix { inherit fetchurl fetchzip; };
|
|
|
|
in
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "adguardhome";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.107.27";
|
2022-04-27 09:35:20 +00:00
|
|
|
src = sources.${system} or (throw "Source for ${pname} is not available for ${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;
|
2023-03-15 16:39:30 +00:00
|
|
|
schema_version = 17;
|
2022-01-19 23:45:15 +00:00
|
|
|
tests.adguardhome = nixosTests.adguardhome;
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
platforms = builtins.attrNames sources;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ numkem iagoq rhoriguchi ];
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
}
|