nixpkgs/pkgs/servers/mail/popa3d/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
737 B
Nix

{ lib, stdenv, fetchurl, openssl, libxcrypt }:
stdenv.mkDerivation rec {
pname = "popa3d";
version = "1.0.3";
src = fetchurl {
url = "http://www.openwall.com/popa3d/${pname}-${version}.tar.gz";
sha256 = "1g48cd74sqhl496wmljhq44iyfpghaz363a1ip8nyhpjz7d57f03";
};
buildInputs = [ openssl libxcrypt ];
patches = [
./fix-mail-spool-path.patch
./use-openssl.patch
./use-glibc-crypt.patch
./enable-standalone-mode.patch
];
configurePhase = ''makeFlags="PREFIX=$out MANDIR=$out/share/man"'';
meta = {
homepage = "http://www.openwall.com/popa3d/";
description = "Tiny POP3 daemon with security as the primary goal";
mainProgram = "popa3d";
platforms = lib.platforms.linux;
};
}