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