uwimap: fix build on darwin
This commit is contained in:
parent
978895272f
commit
28fd333c1d
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, fetchpatch, pam, openssl }:
|
{ lib, stdenv, fetchurl, fetchpatch, pam, openssl, libkrb5 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "uw-imap";
|
pname = "uw-imap";
|
||||||
|
@ -18,8 +18,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [
|
||||||
++ lib.optional (!stdenv.isDarwin) pam;
|
openssl
|
||||||
|
(if stdenv.isDarwin then libkrb5 else pam) # Matches the make target.
|
||||||
|
];
|
||||||
|
|
||||||
patches = [ (fetchpatch {
|
patches = [ (fetchpatch {
|
||||||
url = "https://salsa.debian.org/holmgren/uw-imap/raw/dcb42981201ea14c2d71c01ebb4a61691b6f68b3/debian/patches/1006_openssl1.1_autoverify.patch";
|
url = "https://salsa.debian.org/holmgren/uw-imap/raw/dcb42981201ea14c2d71c01ebb4a61691b6f68b3/debian/patches/1006_openssl1.1_autoverify.patch";
|
||||||
|
@ -43,11 +45,11 @@ stdenv.mkDerivation rec {
|
||||||
tools/{an,ua} $out/bin
|
tools/{an,ua} $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://www.washington.edu/imap/";
|
homepage = "https://www.washington.edu/imap/";
|
||||||
description = "UW IMAP toolkit - IMAP-supporting software developed by the UW";
|
description = "UW IMAP toolkit - IMAP-supporting software developed by the UW";
|
||||||
license = lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = with lib.platforms; linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Reference in a new issue