lol

Merge pull request #206171 from SuperSandro2000/morty

authored by

Sandro and committed by
GitHub
a1cc9f4f a9e692b4

+12 -84
+12 -27
pkgs/servers/web-apps/morty/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub }: 1 + { lib, buildGoModule, fetchFromGitHub }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule { 4 4 pname = "morty"; 5 - version = "0.2.0"; 6 - 7 - goPackagePath = "github.com/asciimoo/morty"; 5 + version = "unstable-2021-04-22"; 8 6 9 7 src = fetchFromGitHub { 10 8 owner = "asciimoo"; 11 9 repo = "morty"; 12 - rev = "v${version}"; 13 - sha256 = "sha256-NWfsqJKJcRPKR8gWQbgal1JsenDesczPcz/+uzhtefM="; 10 + rev = "f5bff1e285d3f973cacf73318e55175edafd633f"; 11 + sha256 = "sha256-ik2VAPdxllt76UVFt77c1ltxIwFNahAKjn3FuErNFYo="; 14 12 }; 15 13 16 - goDeps = ./deps.nix; 14 + vendorSha256 = "sha256-3sllcoTDYQBAyAT7e9KeKNrlTEbgnoZc0Vt0ksQByvo="; 17 15 18 16 meta = with lib; { 19 - homepage = "https://github.com/asciimoo/morty"; 20 - maintainers = with maintainers; [ leenaars ]; 21 - license = licenses.agpl3; 22 17 description = "Privacy aware web content sanitizer proxy as a service"; 23 18 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. 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. 30 21 31 - 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 22 + The main goal of morty is to provide a result proxy for searx, but it can be used as a standalone sanitizer service too. 41 23 ''; 24 + homepage = "https://github.com/asciimoo/morty"; 25 + maintainers = with maintainers; [ leenaars SuperSandro2000 ]; 26 + license = licenses.agpl3; 42 27 }; 43 28 }
-57
pkgs/servers/web-apps/morty/deps.nix
··· 1 - # This file was generated by https://github.com/kamilchm/go2nix v1.2.1 2 - [ 3 - { 4 - goPackagePath = "github.com/klauspost/compress"; 5 - fetch = { 6 - type = "git"; 7 - url = "https://github.com/klauspost/compress"; 8 - rev = "5698df94daded084fa836b7df2ffbf6cbd3dd63a"; 9 - sha256 = "1jligmzsyv08dysdaih3r95ki0dqnay9wlzganl4r0mamwhq22wz"; 10 - }; 11 - } 12 - { 13 - goPackagePath = "github.com/klauspost/cpuid"; 14 - fetch = { 15 - type = "git"; 16 - url = "https://github.com/klauspost/cpuid"; 17 - rev = "ae832f27941af41db13bd6d8efd2493e3b22415a"; 18 - sha256 = "1h46y0lbzx0zjdnwbh0znf2ghgbvpzk1p269kkn7v8645xk3apk9"; 19 - }; 20 - } 21 - { 22 - goPackagePath = "github.com/valyala/bytebufferpool"; 23 - fetch = { 24 - type = "git"; 25 - url = "https://github.com/valyala/bytebufferpool"; 26 - rev = "e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7"; 27 - sha256 = "01lqzjddq6kz9v41nkky7wbgk7f1cw036sa7ldz10d82g5klzl93"; 28 - }; 29 - } 30 - { 31 - goPackagePath = "github.com/valyala/fasthttp"; 32 - fetch = { 33 - type = "git"; 34 - url = "https://github.com/valyala/fasthttp"; 35 - rev = "e5f51c11919d4f66400334047b897ef0a94c6f3c"; 36 - sha256 = "0g24gys7xk449jd9ja89vr33i3amcb12jnmhsrmd5r2q8byv3l09"; 37 - }; 38 - } 39 - { 40 - goPackagePath = "golang.org/x/net"; 41 - fetch = { 42 - type = "git"; 43 - url = "https://go.googlesource.com/net"; 44 - rev = "f5dfe339be1d06f81b22525fe34671ee7d2c8904"; 45 - sha256 = "01y9j7pjnnld4ipmzjvs0hls0hh698f2sga8cxaw5y6r5j7igaah"; 46 - }; 47 - } 48 - { 49 - goPackagePath = "golang.org/x/text"; 50 - fetch = { 51 - type = "git"; 52 - url = "https://go.googlesource.com/text"; 53 - rev = "4e4a3210bb54bb31f6ab2cdca2edcc0b50c420c1"; 54 - sha256 = "10505r4xw1njnr2ns1s5r62s4pwif0kfaa30xxpgpz6qxrrmw15s"; 55 - }; 56 - } 57 - ]