1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/applications/networking/nntp-proxy/default.nix
2016-02-11 16:24:48 +01:00

32 lines
863 B
Nix

{ stdenv, fetchFromGitHub, libconfig, pkgconfig, libevent, openssl }:
stdenv.mkDerivation rec {
name = "nntp-proxy-${version}";
version = "2014-01-06";
src = fetchFromGitHub {
owner = "nieluj";
repo = "nntp-proxy";
rev = "0358e7ad6c4676f90ac5074320b16e1461b0011a";
sha256 = "0jwxh71am83fbnq9mn06jl06rq8qybm506js79xmmc3xbk5pqvy4";
};
buildInputs = [ libconfig pkgconfig libevent openssl ];
installFlags = "INSTALL_DIR=\${out}/bin/";
preInstall = ''
mkdir -p $out/bin
substituteInPlace Makefile \
--replace /usr/bin/install $(type -P install)
'';
meta = {
description = "Simple NNTP proxy with SSL support";
homepage = https://github.com/nieluj/nntp-proxy;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.fadenb ];
platforms = stdenv.lib.platforms.all;
};
}