nixpkgs/pkgs/servers/adguardhome/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
799 B
Nix
Raw Normal View History

2022-01-17 01:39:27 +01:00
{ lib, stdenv, fetchurl, fetchzip, nixosTests }:
2020-04-05 21:39:30 +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 {
pname = "adguardhome";
2022-06-06 17:59:10 +02:00
version = "0.107.7";
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;
2022-01-17 01:39:27 +01:00
tests.adguardhome = nixosTests.adguardhome;
2021-05-22 14:09:35 +02: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";
platforms = builtins.attrNames sources;
2021-05-22 14:09:35 +02:00
maintainers = with maintainers; [ numkem iagoq ];
license = licenses.gpl3Only;
2020-04-05 21:39:30 +02:00
};
}