From 64de340d726ccd74bbaa1b27fcee2b0efcbd99f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C8=98erb=C4=83nescu?= Date: Sun, 22 Aug 2021 19:19:03 +0200 Subject: [PATCH] filtron: init at 0.2.0 --- pkgs/servers/filtron/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/servers/filtron/default.nix diff --git a/pkgs/servers/filtron/default.nix b/pkgs/servers/filtron/default.nix new file mode 100644 index 000000000000..36d64db4e215 --- /dev/null +++ b/pkgs/servers/filtron/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "filtron"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "asciimoo"; + repo = "filtron"; + rev = "v${version}"; + sha256 = "18d3h0i2sfqbc0bjx26jm2n9f37zwp8z9z4wd17sw7nvkfa72a26"; + }; + + vendorSha256 = "05q2g591xl08h387mm6njabvki19yih63dfsafgpc9hyk5ydf2n9"; + + # The upstream test checks are obsolete/unmaintained. + doCheck = false; + + meta = with lib; { + description = "Reverse HTTP proxy to filter requests by different rules."; + homepage = "https://github.com/asciimoo/filtron"; + license = licenses.agpl3; + maintainers = [ maintainers.dasj19 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 30db04579be1..3741448051fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15366,6 +15366,8 @@ with pkgs; filter-audio = callPackage ../development/libraries/filter-audio {}; + filtron = callPackage ../servers/filtron {}; + flann = callPackage ../development/libraries/flann { }; flatcc = callPackage ../development/libraries/flatcc { };