3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/adguardhome/default.nix
Ryan Burns 0b918edc99 adguardhome: remove toplevel system attr
Note that targetPlatform was incorrect when cross-compiling,
and should be hostPlatform
2021-10-24 13:53:23 -07:00

25 lines
666 B
Nix

{ lib, stdenv, fetchurl, fetchzip }:
stdenv.mkDerivation rec {
pname = "adguardhome";
version = "0.106.3";
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${stdenv.hostPlatform.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;
};
}