diff options
author | Elis Hirwing <elis@hirwing.se> | 2022-10-03 08:36:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 08:36:05 +0200 |
commit | 9b9830c41febf82448270d501471e9370472c718 (patch) | |
tree | fdfff7016ddfacc08556d5f2c8848e17fdfdf584 /pkgs | |
parent | 16a23e65dc7c40a10653bf4a040f62e3af4ebecf (diff) | |
parent | 28fd333c1dcbcc9893c25702f13f2b867723183e (diff) |
Merge pull request #194109 from stephank/fix/darwin-uw-imap
uwimap: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/uwimap/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/tools/networking/uwimap/default.nix b/pkgs/tools/networking/uwimap/default.nix index a10a779097a52..4bd2f872caf3e 100644 --- a/pkgs/tools/networking/uwimap/default.nix +++ b/pkgs/tools/networking/uwimap/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, pam, openssl }: +{ lib, stdenv, fetchurl, fetchpatch, pam, openssl, libkrb5 }: stdenv.mkDerivation rec { pname = "uw-imap"; @@ -18,8 +18,10 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; - buildInputs = [ openssl ] - ++ lib.optional (!stdenv.isDarwin) pam; + buildInputs = [ + openssl + (if stdenv.isDarwin then libkrb5 else pam) # Matches the make target. + ]; patches = [ (fetchpatch { 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 ''; - meta = { + meta = with lib; { homepage = "https://www.washington.edu/imap/"; description = "UW IMAP toolkit - IMAP-supporting software developed by the UW"; - license = lib.licenses.asl20; - platforms = with lib.platforms; linux; + license = licenses.asl20; + platforms = platforms.unix; }; passthru = { |