2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libconfig, pkgconfig, libevent, openssl }:
|
2016-02-09 16:47:04 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nntp-proxy";
|
2016-02-09 16:47:04 +01:00
|
|
|
version = "2014-01-06";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nieluj";
|
|
|
|
repo = "nntp-proxy";
|
|
|
|
rev = "0358e7ad6c4676f90ac5074320b16e1461b0011a";
|
|
|
|
sha256 = "0jwxh71am83fbnq9mn06jl06rq8qybm506js79xmmc3xbk5pqvy4";
|
|
|
|
};
|
|
|
|
|
2017-09-15 19:10:23 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libconfig libevent openssl ];
|
2016-02-09 16:47:04 +01:00
|
|
|
|
2017-09-15 19:10:23 +02:00
|
|
|
installFlags = [ "INSTALL_DIR=$(out)/bin/" ];
|
2016-02-09 16:47:04 +01:00
|
|
|
|
2017-09-15 19:10:23 +02:00
|
|
|
prePatch = ''
|
2016-02-09 16:47:04 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
substituteInPlace Makefile \
|
2017-09-15 19:10:23 +02:00
|
|
|
--replace /usr/bin/install $(type -P install) \
|
|
|
|
--replace gcc cc
|
2016-02-09 16:47:04 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple NNTP proxy with SSL support";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nieluj/nntp-proxy";
|
2021-01-15 06:42:41 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.fadenb ];
|
|
|
|
platforms = lib.platforms.all;
|
2016-02-09 16:47:04 +01:00
|
|
|
};
|
|
|
|
}
|