Files
nixpkgs/pkgs/by-name/po/popa3d/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
944 B
Nix

{
lib,
stdenv,
fetchurl,
openssl,
libxcrypt,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "popa3d";
version = "1.0.3";
src = fetchurl {
url = "http://www.openwall.com/popa3d/popa3d-${finalAttrs.version}.tar.gz";
hash = "sha256-A7hT2vnyQm/RjUENM76C7zofCcFQ0spNIhRiTU5jiLw=";
};
patches = [
./fix-mail-spool-path.patch
./use-openssl.patch
./use-glibc-crypt.patch
./enable-standalone-mode.patch
];
enableParallelBuilding = true;
makeFlags = [
"PREFIX=$(out)"
"MANDIR=$(out)/share/man"
];
buildInputs = [
openssl
libxcrypt
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "-V";
meta = {
homepage = "http://www.openwall.com/popa3d/";
description = "Tiny POP3 daemon with security as the primary goal";
mainProgram = "popa3d";
platforms = lib.platforms.linux;
};
})