summary refs log tree commit diff
path: root/pkgs/applications/networking/blocky
diff options
context:
space:
mode:
authorVictor Freire <victor@freire.dev.br>2022-01-25 00:40:12 -0300
committerVictor Freire <victor@freire.dev.br>2022-01-25 11:24:36 -0300
commit85b23d7198abddb978d093641e0033cc72b4e59a (patch)
tree5c35ff1fd48a72245946d2698dd5fcac9ae241fa /pkgs/applications/networking/blocky
parentfa40cd3356d1cbb7bea6bad2e7374dd4b8c2cd96 (diff)
downloadnixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar.gz
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar.bz2
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar.lz
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar.xz
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.tar.zst
nixpkgs-85b23d7198abddb978d093641e0033cc72b4e59a.zip
blocky: init at 0.17
Diffstat (limited to 'pkgs/applications/networking/blocky')
-rw-r--r--pkgs/applications/networking/blocky/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/networking/blocky/default.nix b/pkgs/applications/networking/blocky/default.nix
new file mode 100644
index 00000000000..8bc0963338f
--- /dev/null
+++ b/pkgs/applications/networking/blocky/default.nix
@@ -0,0 +1,30 @@
+{ buildGoModule
+, fetchFromGitHub
+, lib
+}:
+
+buildGoModule rec {
+  pname = "blocky";
+  version = "0.17";
+
+  src = fetchFromGitHub {
+    owner = "0xERR0R";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-vG6QAI8gBI2nLRQ0nOFWQHihyzgmJu69rgkWlg3iW3E=";
+  };
+
+  # needs network connection and fails at
+  # https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
+  doCheck = false;
+
+  vendorSha256 = "sha256-+mpNPDejK9Trhw41SUXJPL/OX5wQR0QfA2+BXSlE0Jk=";
+
+  meta = with lib; {
+    description = "Fast and lightweight DNS proxy as ad-blocker for local network with many features.";
+    homepage = "https://0xerr0r.github.io/blocky";
+    changelog = "https://github.com/0xERR0R/blocky/releases";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ ratsclub ];
+  };
+}