diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/3proxy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/3proxy/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/3proxy/default.nix b/nixpkgs/pkgs/applications/networking/3proxy/default.nix new file mode 100644 index 000000000000..b83f93b3b68c --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/3proxy/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, coreutils, nixosTests }: + +stdenv.mkDerivation rec { + pname = "3proxy"; + version = "0.9.4"; + + src = fetchFromGitHub { + owner = "z3APA3A"; + repo = pname; + rev = version; + sha256 = "sha256-4bLlQ/ULvpjs6fr19yBBln5mRRc+yj+zVLiTs1e/Ypc="; + }; + + makeFlags = [ + "-f Makefile.Linux" + "INSTALL=${coreutils}/bin/install" + "DESTDIR=${placeholder "out"}" + ]; + + passthru.tests = { + smoke-test = nixosTests._3proxy; + }; + + meta = with lib; { + description = "Tiny free proxy server"; + homepage = "https://github.com/z3APA3A/3proxy"; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ misuzu ]; + }; +} |