Merge older staging branch
This commit is contained in:
@@ -27,7 +27,7 @@ with stdenv.lib;
|
||||
|
||||
let
|
||||
majorVersion = "3.6";
|
||||
minorVersion = "3";
|
||||
minorVersion = "4";
|
||||
minorVersionSuffix = "";
|
||||
pythonVersion = majorVersion;
|
||||
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
|
||||
@@ -48,7 +48,7 @@ in stdenv.mkDerivation {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
|
||||
sha256 = "1nl1raaagr4car787a2hmjv2dw6gqny53xfd6wisbgx4r5kxk9yd";
|
||||
sha256 = "1fna7g8jxzl4kd2pqmmqhva5724c5m920x3fsrpsgskaylmr76qm";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
|
||||
|
||||
@@ -19,10 +19,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0zn8s7anb10hw3nzwjz7vg10fgmmgvwnibn2zrn3nppjxn9f6f8n";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"]
|
||||
++ optional stdenv.isFreeBSD ''WARN_CFLAGS=""'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl yacc ]
|
||||
nativeBuildInputs = [ pkgconfig perl ]
|
||||
++ optional (!libOnly) yacc
|
||||
# Provides the mig command used by the build scripts
|
||||
++ optional stdenv.isDarwin bootstrap_cmds;
|
||||
buildInputs = [ openssl ]
|
||||
@@ -31,20 +34,26 @@ stdenv.mkDerivation rec {
|
||||
preConfigure = "cd ./src";
|
||||
|
||||
buildPhase = optionalString libOnly ''
|
||||
(cd util; make -j $NIX_BUILD_CORES)
|
||||
(cd include; make -j $NIX_BUILD_CORES)
|
||||
(cd lib; make -j $NIX_BUILD_CORES)
|
||||
(cd build-tools; make -j $NIX_BUILD_CORES)
|
||||
MAKE="make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES"
|
||||
(cd util; $MAKE)
|
||||
(cd include; $MAKE)
|
||||
(cd lib; $MAKE)
|
||||
(cd build-tools; $MAKE)
|
||||
'';
|
||||
|
||||
installPhase = optionalString libOnly ''
|
||||
mkdir -p $out/{bin,include/{gssapi,gssrpc,kadm5,krb5},lib/pkgconfig,sbin,share/{et,man/man1}}
|
||||
(cd util; make -j $NIX_BUILD_CORES install)
|
||||
(cd include; make -j $NIX_BUILD_CORES install)
|
||||
(cd lib; make -j $NIX_BUILD_CORES install)
|
||||
(cd build-tools; make -j $NIX_BUILD_CORES install)
|
||||
rm -rf $out/{sbin,share}
|
||||
find $out/bin -type f | grep -v 'krb5-config' | xargs rm
|
||||
mkdir -p "$out"/{bin,sbin,lib/pkgconfig,share/{et,man/man1}} \
|
||||
"$dev"/include/{gssapi,gssrpc,kadm5,krb5}
|
||||
(cd util; $MAKE install)
|
||||
(cd include; $MAKE install)
|
||||
(cd lib; $MAKE install)
|
||||
(cd build-tools; $MAKE install)
|
||||
${postInstall}
|
||||
'';
|
||||
|
||||
# not via outputBin, due to reference from libkrb5.so
|
||||
postInstall = ''
|
||||
moveToOutput bin "$dev"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ qtModule, lib, qtbase }:
|
||||
{ qtModule, stdenv, lib, qtbase }:
|
||||
|
||||
with lib;
|
||||
|
||||
@@ -28,6 +28,8 @@ qtModule {
|
||||
"bin/qhelpgenerator"
|
||||
"bin/qtplugininfo"
|
||||
"bin/qthelpconverter"
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
"bin/macdeployqt"
|
||||
];
|
||||
|
||||
setupHook = ../hooks/qttools-setup-hook.sh;
|
||||
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
APU="$(echo "${aprutil.dev}"/bin/*-config)" CC="${
|
||||
if stdenv.cc.isClang then "clang" else "${stdenv.cc}/bin/gcc"
|
||||
}" ${
|
||||
if (stdenv.isDarwin || stdenv.isCygwin) then "" else "GSSAPI=\"${kerberos}\""
|
||||
if (stdenv.isDarwin || stdenv.isCygwin) then "" else "GSSAPI=\"${kerberos.dev}\""
|
||||
}
|
||||
'';
|
||||
|
||||
|
||||
@@ -11,7 +11,13 @@ buildPythonPackage rec {
|
||||
sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
|
||||
};
|
||||
|
||||
LD_LIBRARY_PATH="${pkgs.krb5Full}/lib";
|
||||
# It's used to locate headers
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "get_output('krb5-config gssapi --prefix')" "'${lib.getDev krb5Full}'"
|
||||
'';
|
||||
|
||||
LD_LIBRARY_PATH = "${pkgs.krb5Full}/lib";
|
||||
|
||||
buildInputs = [ krb5Full which nose shouldbe ]
|
||||
++ ( if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.GSS ] else [ gss ] );
|
||||
|
||||
Reference in New Issue
Block a user