Use libheimdal instead of heimdal

This commit is contained in:
William A. Kennington III 2015-05-29 00:46:32 -07:00
parent 1e14f0a055
commit 06c9915ed1
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, cmake { stdenv, fetchurl, pkgconfig, cmake
# Optional Dependencies # Optional Dependencies
, heimdal ? null, zlib ? null, libsodium ? null , libheimdal ? null, zlib ? null, libsodium ? null
# Crypto Dependencies # Crypto Dependencies
, openssl ? null, libgcrypt ? null , openssl ? null, libgcrypt ? null
@ -19,7 +19,7 @@ let
none = null; none = null;
}.${cryptoStr}; }.${cryptoStr};
optHeimdal = shouldUsePkg heimdal; optLibheimdal = shouldUsePkg libheimdal;
optZlib = shouldUsePkg zlib; optZlib = shouldUsePkg zlib;
optLibsodium = shouldUsePkg libsodium; optLibsodium = shouldUsePkg libsodium;
in in
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
''; '';
cmakeFlags = [ cmakeFlags = [
"-DWITH_GSSAPI=${if optHeimdal != null then "ON" else "OFF"}" "-DWITH_GSSAPI=${if optLibheimdal != null then "ON" else "OFF"}"
"-DWITH_ZLIB=${if optZlib != null then "ON" else "OFF"}" "-DWITH_ZLIB=${if optZlib != null then "ON" else "OFF"}"
"-DWITH_SSH1=OFF" "-DWITH_SSH1=OFF"
"-DWITH_SFTP=ON" "-DWITH_SFTP=ON"
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ pkgconfig cmake ]; nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ optHeimdal optZlib optLibsodium crypto ]; buildInputs = [ optLibheimdal optZlib optLibsodium crypto ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "SSH client library"; description = "SSH client library";

View File

@ -8973,7 +8973,7 @@ let
samba4 = callPackage ../servers/samba/4.x.nix { samba4 = callPackage ../servers/samba/4.x.nix {
python = python2; python = python2;
kerberos = heimdal; kerberos = libheimdal;
gnutls = gnutls33; gnutls = gnutls33;
cups = if stdenv.isDarwin then null else cups; cups = if stdenv.isDarwin then null else cups;
pam = if stdenv.isDarwin then null else pam; pam = if stdenv.isDarwin then null else pam;