forked from mirrors/nixpkgs
parent
c449f292d2
commit
1b32ae03f3
|
@ -3,7 +3,7 @@
|
|||
|
||||
# Optional Dependencies
|
||||
, libedit ? null, readline ? null, ncurses ? null, libverto ? null
|
||||
, openldap ? null
|
||||
, openldap ? null, db ? null
|
||||
|
||||
# Crypto Dependencies
|
||||
, openssl ? null, nss ? null, nspr ? null
|
||||
|
@ -24,6 +24,7 @@ let
|
|||
optNcurses = if libOnly then null else shouldUsePkg ncurses;
|
||||
optLibverto = shouldUsePkg libverto;
|
||||
optOpenldap = if libOnly then null else shouldUsePkg openldap;
|
||||
optDb = if libOnly then null else shouldUsePkg db;
|
||||
|
||||
# Prefer the openssl implementation
|
||||
cryptoStr = if optOpenssl != null then "openssl"
|
||||
|
@ -93,7 +94,7 @@ stdenv.mkDerivation rec {
|
|||
(mkWith (optLibverto != null) "system-verto" null)
|
||||
(mkWith (optOpenldap != null) "ldap" null)
|
||||
(mkWith false "tcl" null)
|
||||
(mkWith false "system-db" null) # Requires db v1.85
|
||||
(mkWith (optDb != null) "system-db" null)
|
||||
];
|
||||
|
||||
buildPhase = optionalString libOnly ''
|
||||
|
@ -105,14 +106,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
installPhase = optionalString libOnly ''
|
||||
mkdir -p $out/{bin,include/{gssapi,gssrpc,kadm5,krb5},lib/pkgconfig,sbin,share/{et,man/man1}}
|
||||
|
||||
(cd util; make install)
|
||||
(cd include; make install)
|
||||
(cd lib; make install)
|
||||
(cd build-tools; make install)
|
||||
|
||||
rm -rf $out/{sbin,share}
|
||||
find $out/bin -type f | grep -v 'krb5-config' | xargs rm
|
||||
rm -rf $out/{bin,sbin,share}
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Reference in a new issue