···11-{ lib, buildGoPackage, fetchFromGitHub }:
11+{ lib, buildGoModule, fetchFromGitHub }:
2233-buildGoPackage rec {
33+buildGoModule {
44 pname = "morty";
55- version = "0.2.0";
66-77- goPackagePath = "github.com/asciimoo/morty";
55+ version = "unstable-2021-04-22";
8697 src = fetchFromGitHub {
108 owner = "asciimoo";
119 repo = "morty";
1212- rev = "v${version}";
1313- sha256 = "sha256-NWfsqJKJcRPKR8gWQbgal1JsenDesczPcz/+uzhtefM=";
1010+ rev = "f5bff1e285d3f973cacf73318e55175edafd633f";
1111+ sha256 = "sha256-ik2VAPdxllt76UVFt77c1ltxIwFNahAKjn3FuErNFYo=";
1412 };
15131616- goDeps = ./deps.nix;
1414+ vendorSha256 = "sha256-3sllcoTDYQBAyAT7e9KeKNrlTEbgnoZc0Vt0ksQByvo=";
17151816 meta = with lib; {
1919- homepage = "https://github.com/asciimoo/morty";
2020- maintainers = with maintainers; [ leenaars ];
2121- license = licenses.agpl3;
2217 description = "Privacy aware web content sanitizer proxy as a service";
2318 longDescription = ''
2424- Morty is a web content sanitizer proxy as a service. It rewrites web
2525- pages to exclude malicious HTML tags and attributes. It also replaces
2626- external resource references to prevent third party information leaks.
2727-2828- The main goal of morty is to provide a result proxy for searx, but it
2929- can be used as a standalone sanitizer service too.
1919+ Morty rewrites web pages to exclude malicious HTML tags and attributes.
2020+ It also replaces external resource references to prevent third party information leaks.
30213131- Features:
3232-3333- * HTML sanitization
3434- * Rewrites HTML/CSS external references to locals
3535- * JavaScript blocking
3636- * No Cookies forwarded
3737- * No Referrers
3838- * No Caching/Etag
3939- * Supports GET/POST forms and IFrames
4040- * Optional HMAC URL verifier key to prevent service abuse
2222+ The main goal of morty is to provide a result proxy for searx, but it can be used as a standalone sanitizer service too.
4123 '';
2424+ homepage = "https://github.com/asciimoo/morty";
2525+ maintainers = with maintainers; [ leenaars SuperSandro2000 ];
2626+ license = licenses.agpl3;
4227 };
4328}