3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/3proxy/default.nix

32 lines
704 B
Nix
Raw Normal View History

2021-04-03 23:29:21 +01:00
{ lib, stdenv, fetchFromGitHub, coreutils, nixosTests }:
2019-08-26 15:21:03 +01:00
stdenv.mkDerivation rec {
pname = "3proxy";
2021-07-03 04:15:55 +01:00
version = "0.9.4";
2020-12-28 21:32:20 +00:00
2019-08-26 15:21:03 +01:00
src = fetchFromGitHub {
owner = "z3APA3A";
repo = pname;
rev = version;
2021-07-03 04:15:55 +01:00
sha256 = "sha256-4bLlQ/ULvpjs6fr19yBBln5mRRc+yj+zVLiTs1e/Ypc=";
2019-08-26 15:21:03 +01:00
};
2020-12-28 21:32:20 +00:00
2019-08-26 15:21:03 +01:00
makeFlags = [
2020-12-28 21:32:20 +00:00
"-f Makefile.Linux"
2019-08-26 15:21:03 +01:00
"INSTALL=${coreutils}/bin/install"
2020-12-28 21:32:20 +00:00
"DESTDIR=${placeholder "out"}"
2019-08-26 15:21:03 +01:00
];
2020-12-28 21:32:20 +00:00
2021-04-03 23:29:21 +01:00
passthru.tests = {
smoke-test = nixosTests._3proxy;
};
meta = with lib; {
2019-08-26 15:21:03 +01:00
description = "Tiny free proxy server";
homepage = "https://github.com/z3APA3A/3proxy";
2020-12-28 21:32:20 +00:00
license = licenses.bsd2;
2019-08-26 15:21:03 +01:00
platforms = platforms.linux;
2020-12-28 21:32:20 +00:00
maintainers = with maintainers; [ misuzu ];
2019-08-26 15:21:03 +01:00
};
}