about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSebastien Bariteau <numkem@numkem.org>2020-04-05 15:39:30 -0400
committerSebastien Bariteau <numkem@numkem.org>2020-04-27 09:30:36 -0400
commit1a3841fd824083f57992c36c7daa7851a7909e5e (patch)
tree6076cf2ad5a9497ac651349f17808499e406b5ab /pkgs
parenteeb257f04df9ff55f0be4d8eba2a377005885a4d (diff)
downloadnixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar.gz
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar.bz2
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar.lz
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar.xz
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.tar.zst
nixlib-1a3841fd824083f57992c36c7daa7851a7909e5e.zip
AdGuardHome: init at 0.101.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/adguardhome/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/adguardhome/default.nix b/pkgs/servers/adguardhome/default.nix
new file mode 100644
index 000000000000..54000a81b67d
--- /dev/null
+++ b/pkgs/servers/adguardhome/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "adguardhome";
+  version = "0.101.0";
+
+  src = fetchurl {
+    url = "https://github.com/AdguardTeam/AdGuardHome/releases/download/v${version}/AdGuardHome_linux_amd64.tar.gz";
+    sha256 = "17k37hh04zhy5csl0p9g4hybfc403i38n754in1xrkzxi81r8dh5";
+  };
+
+  installPhase = ''
+    install -m755 -D ./AdGuardHome $out/bin/adguardhome
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/AdguardTeam/AdGuardHome";
+    description = "Network-wide ads & trackers blocking DNS server";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ numkem ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 49ab4d06c106..de857990d709 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -15347,6 +15347,8 @@ in
     kerberos = libkrb5;
   };
 
+  adguardhome = callPackage ../servers/adguardhome {};
+
   apacheHttpd_2_4 = callPackage ../servers/http/apache-httpd/2.4.nix { };
   apacheHttpd = pkgs.apacheHttpd_2_4;