nixpkgs/pkgs/applications/networking/3proxy/default.nix

32 lines
704 B
Nix
Raw Normal View History

2021-04-03 22:29:21 +00:00
{ lib, stdenv, fetchFromGitHub, coreutils, nixosTests }:
2019-08-26 14:21:03 +00:00
stdenv.mkDerivation rec {
pname = "3proxy";
2021-07-03 03:15:55 +00:00
version = "0.9.4";
2020-12-28 21:32:20 +00:00
2019-08-26 14:21:03 +00:00
src = fetchFromGitHub {
owner = "z3APA3A";
repo = pname;
rev = version;
2021-07-03 03:15:55 +00:00
sha256 = "sha256-4bLlQ/ULvpjs6fr19yBBln5mRRc+yj+zVLiTs1e/Ypc=";
2019-08-26 14:21:03 +00:00
};
2020-12-28 21:32:20 +00:00
2019-08-26 14:21:03 +00:00
makeFlags = [
2020-12-28 21:32:20 +00:00
"-f Makefile.Linux"
2019-08-26 14:21:03 +00:00
"INSTALL=${coreutils}/bin/install"
2020-12-28 21:32:20 +00:00
"DESTDIR=${placeholder "out"}"
2019-08-26 14:21:03 +00:00
];
2020-12-28 21:32:20 +00:00
2021-04-03 22:29:21 +00:00
passthru.tests = {
smoke-test = nixosTests._3proxy;
};
meta = with lib; {
2019-08-26 14:21:03 +00: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 14:21:03 +00:00
platforms = platforms.linux;
2020-12-28 21:32:20 +00:00
maintainers = with maintainers; [ misuzu ];
2019-08-26 14:21:03 +00:00
};
}