depot/third_party/nixpkgs/pkgs/servers/adguardhome/default.nix
Default email d9e13ed064 Project import generated by Copybara.
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
2021-09-22 23:38:15 +08:00

24 lines
678 B
Nix

{ lib, stdenv, fetchurl, fetchzip, system ? stdenv.targetPlatform }:
stdenv.mkDerivation rec {
pname = "adguardhome";
version = "0.106.3";
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${system};
installPhase = ''
install -m755 -D ./AdGuardHome $out/bin/adguardhome
'';
passthru = {
updateScript = ./update.sh;
};
meta = with lib; {
homepage = "https://github.com/AdguardTeam/AdGuardHome";
description = "Network-wide ads & trackers blocking DNS server";
platforms = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
maintainers = with maintainers; [ numkem iagoq ];
license = licenses.gpl3Only;
};
}