571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule {
|
|
pname = "morty";
|
|
version = "unstable-2021-04-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asciimoo";
|
|
repo = "morty";
|
|
rev = "f5bff1e285d3f973cacf73318e55175edafd633f";
|
|
sha256 = "sha256-ik2VAPdxllt76UVFt77c1ltxIwFNahAKjn3FuErNFYo=";
|
|
};
|
|
|
|
vendorHash = "sha256-3sllcoTDYQBAyAT7e9KeKNrlTEbgnoZc0Vt0ksQByvo=";
|
|
|
|
passthru.tests = { inherit (nixosTests) morty; };
|
|
|
|
meta = with lib; {
|
|
description = "Privacy aware web content sanitizer proxy as a service";
|
|
mainProgram = "morty";
|
|
longDescription = ''
|
|
Morty rewrites web pages to exclude malicious HTML tags and attributes.
|
|
It also replaces external resource references to prevent third party information leaks.
|
|
|
|
The main goal of morty is to provide a result proxy for searx, but it can be used as a standalone sanitizer service too.
|
|
'';
|
|
homepage = "https://github.com/asciimoo/morty";
|
|
maintainers = with maintainers; [ leenaars SuperSandro2000 ];
|
|
license = licenses.agpl3Only;
|
|
};
|
|
}
|