nixpkgs/pkgs/by-name/nn/nntp-proxy/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
943 B
Nix

{ lib, stdenv, fetchFromGitHub, libconfig, pkg-config, libevent, openssl, libxcrypt }:
stdenv.mkDerivation {
pname = "nntp-proxy";
version = "2014-01-06";
src = fetchFromGitHub {
owner = "nieluj";
repo = "nntp-proxy";
rev = "0358e7ad6c4676f90ac5074320b16e1461b0011a";
sha256 = "0jwxh71am83fbnq9mn06jl06rq8qybm506js79xmmc3xbk5pqvy4";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libconfig libevent openssl libxcrypt ];
installFlags = [ "INSTALL_DIR=$(out)/bin/" ];
prePatch = ''
mkdir -p $out/bin
substituteInPlace Makefile \
--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";
license = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.fadenb ];
platforms = lib.platforms.all;
mainProgram = "nntp-proxy";
};
}