···1-{ lib, buildGoPackage, fetchFromGitHub }:
23-buildGoPackage rec {
4 pname = "morty";
5- version = "0.2.0";
6-7- goPackagePath = "github.com/asciimoo/morty";
89 src = fetchFromGitHub {
10 owner = "asciimoo";
11 repo = "morty";
12- rev = "v${version}";
13- sha256 = "sha256-NWfsqJKJcRPKR8gWQbgal1JsenDesczPcz/+uzhtefM=";
14 };
1516- goDeps = ./deps.nix;
1718 meta = with lib; {
19- homepage = "https://github.com/asciimoo/morty";
20- maintainers = with maintainers; [ leenaars ];
21- license = licenses.agpl3;
22 description = "Privacy aware web content sanitizer proxy as a service";
23 longDescription = ''
24- Morty is a web content sanitizer proxy as a service. It rewrites web
25- pages to exclude malicious HTML tags and attributes. It also replaces
26- external resource references to prevent third party information leaks.
27-28- The main goal of morty is to provide a result proxy for searx, but it
29- can be used as a standalone sanitizer service too.
3031- Features:
32-33- * HTML sanitization
34- * Rewrites HTML/CSS external references to locals
35- * JavaScript blocking
36- * No Cookies forwarded
37- * No Referrers
38- * No Caching/Etag
39- * Supports GET/POST forms and IFrames
40- * Optional HMAC URL verifier key to prevent service abuse
41 '';
00042 };
43}
···1+{ lib, buildGoModule, fetchFromGitHub }:
23+buildGoModule {
4 pname = "morty";
5+ version = "unstable-2021-04-22";
0067 src = fetchFromGitHub {
8 owner = "asciimoo";
9 repo = "morty";
10+ rev = "f5bff1e285d3f973cacf73318e55175edafd633f";
11+ sha256 = "sha256-ik2VAPdxllt76UVFt77c1ltxIwFNahAKjn3FuErNFYo=";
12 };
1314+ vendorSha256 = "sha256-3sllcoTDYQBAyAT7e9KeKNrlTEbgnoZc0Vt0ksQByvo=";
1516 meta = with lib; {
00017 description = "Privacy aware web content sanitizer proxy as a service";
18 longDescription = ''
19+ Morty rewrites web pages to exclude malicious HTML tags and attributes.
20+ It also replaces external resource references to prevent third party information leaks.
00002122+ The main goal of morty is to provide a result proxy for searx, but it can be used as a standalone sanitizer service too.
00000000023 '';
24+ homepage = "https://github.com/asciimoo/morty";
25+ maintainers = with maintainers; [ leenaars SuperSandro2000 ];
26+ license = licenses.agpl3;
27 };
28}