nixpkgs/pkgs/applications/networking/nntp-proxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
890 B
Nix
Raw Normal View History

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