Merge pull request #40294 from obsidiansystems/no-crossAttrs
misc packages: Fewer crossAttrs
This commit is contained in:
commit
1d90ea9194
@ -25,7 +25,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
, buildPlatform, hostPlatform, targetPlatform
|
, buildPlatform, hostPlatform, targetPlatform
|
||||||
@ -371,9 +372,11 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags = if bootstrap then
|
buildFlags = optional
|
||||||
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
else "";
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
||||||
|
|
||||||
@ -382,12 +385,6 @@ stdenv.mkDerivation ({
|
|||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -489,8 +486,5 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
, buildPlatform, hostPlatform, targetPlatform
|
, buildPlatform, hostPlatform, targetPlatform
|
||||||
@ -393,9 +394,11 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags = if bootstrap then
|
buildFlags = optional
|
||||||
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
else "";
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
||||||
|
|
||||||
@ -404,12 +407,6 @@ stdenv.mkDerivation ({
|
|||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -507,9 +504,6 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
|
|
||||||
// optionalAttrs (langJava) {
|
// optionalAttrs (langJava) {
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
@ -396,9 +397,11 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags = if bootstrap then
|
buildFlags = optional
|
||||||
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
else "";
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
||||||
|
|
||||||
@ -407,12 +410,6 @@ stdenv.mkDerivation ({
|
|||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -510,8 +507,5 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
@ -400,8 +401,11 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags =
|
buildFlags = optional
|
||||||
optional bootstrap (if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
||||||
|
|
||||||
@ -410,12 +414,6 @@ stdenv.mkDerivation ({
|
|||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -513,9 +511,6 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
|
|
||||||
// optionalAttrs (langJava) {
|
// optionalAttrs (langJava) {
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
@ -352,8 +353,11 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags =
|
buildFlags = optional
|
||||||
optional bootstrap (if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
|
||||||
|
|
||||||
@ -362,12 +366,6 @@ stdenv.mkDerivation ({
|
|||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -454,8 +452,5 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
)
|
)
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
@ -347,20 +348,17 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags =
|
buildFlags = optional
|
||||||
optional bootstrap (if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
(bootstrap && hostPlatform == buildPlatform)
|
||||||
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap");
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
|
||||||
installTargets =
|
installTargets =
|
||||||
if stripped
|
if stripped
|
||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -447,8 +445,5 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
)
|
)
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
, libcCross ? null
|
, libcCross ? null
|
||||||
, crossStageStatic ? false
|
, crossStageStatic ? false
|
||||||
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
, libpthread ? null, libpthreadCross ? null # required for GNU/Hurd
|
||||||
, stripped ? true
|
, # Strip kills static libs of other archs (hence no cross)
|
||||||
|
stripped ? hostPlatform == buildPlatform && targetPlatform == hostPlatform
|
||||||
, gnused ? null
|
, gnused ? null
|
||||||
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
, cloog # unused; just for compat with gcc4, as we override the parameter on some places
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
@ -318,17 +319,14 @@ stdenv.mkDerivation ({
|
|||||||
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
|
(if profiledCompiler then "profiledbootstrap" else "bootstrap")
|
||||||
else "";
|
else "";
|
||||||
|
|
||||||
|
dontStrip = !stripped;
|
||||||
|
NIX_STRIP_DEBUG = !stripped;
|
||||||
|
|
||||||
installTargets =
|
installTargets =
|
||||||
if stripped
|
if stripped
|
||||||
then "install-strip"
|
then "install-strip"
|
||||||
else "install";
|
else "install";
|
||||||
|
|
||||||
/* For cross-built gcc (build != host == target) */
|
|
||||||
crossAttrs = {
|
|
||||||
dontStrip = true;
|
|
||||||
buildFlags = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
|
||||||
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
|
||||||
|
|
||||||
@ -417,8 +415,5 @@ stdenv.mkDerivation ({
|
|||||||
installTargets = "install-gcc install-target-libgcc";
|
installTargets = "install-gcc install-target-libgcc";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Strip kills static libs of other archs (hence targetPlatform != hostPlatform)
|
|
||||||
// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; NIX_STRIP_DEBUG = 0; }
|
|
||||||
|
|
||||||
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
// optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
|
||||||
)
|
)
|
||||||
|
@ -13,13 +13,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
crossAttrs = {
|
cmakeFlags = []
|
||||||
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
cmakeFlags = [
|
"-DMSGPACK_BUILD_EXAMPLES=OFF"
|
||||||
"-DMSGPACK_BUILD_EXAMPLES=OFF"
|
++ stdenv.lib.optional (hostPlatform.libc == "msvcrt")
|
||||||
"-DCMAKE_SYSTEM_NAME=Windows"
|
"-DCMAKE_SYSTEM_NAME=Windows"
|
||||||
];
|
;
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "MessagePack implementation for C and C++";
|
description = "MessagePack implementation for C and C++";
|
||||||
|
@ -12,10 +12,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# We need to force the autodetection because detection doesn't
|
# We need to force the autodetection because detection doesn't
|
||||||
# work in pure build enviroments.
|
# work in pure build enviroments.
|
||||||
configureFlags =
|
configureFlags = [
|
||||||
if stdenv.isLinux then [ "--with-pcap=linux" ]
|
("--with-pcap=" + {
|
||||||
else if stdenv.isDarwin then [ "--with-pcap=bpf" ]
|
linux = "linux";
|
||||||
else [];
|
darwin = "bpf";
|
||||||
|
}.${stdenv.hostPlatform.parsed.kernel.name})
|
||||||
|
] ++ stdenv.lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
|
||||||
|
"ac_cv_linux_vers=2"
|
||||||
|
];
|
||||||
|
|
||||||
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
|
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace configure --replace " -arch i386" ""
|
substituteInPlace configure --replace " -arch i386" ""
|
||||||
@ -39,12 +45,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preInstall = ''mkdir -p $out/bin'';
|
preInstall = ''mkdir -p $out/bin'';
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
# Stripping hurts in static libraries
|
|
||||||
dontStrip = true;
|
|
||||||
configureFlags = configureFlags ++ [ "ac_cv_linux_vers=2" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.tcpdump.org;
|
homepage = http://www.tcpdump.org;
|
||||||
description = "Packet Capture Library";
|
description = "Packet Capture Library";
|
||||||
|
@ -12,9 +12,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
|
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
|
||||||
|
|
||||||
crossAttrs = {
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
dontStrip = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://librsync.sourceforge.net/;
|
homepage = http://librsync.sourceforge.net/;
|
||||||
|
@ -14,9 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ perl zlib bzip2 popt ];
|
buildInputs = [ perl zlib bzip2 popt ];
|
||||||
|
|
||||||
crossAttrs = {
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
dontStrip = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://librsync.sourceforge.net/;
|
homepage = http://librsync.sourceforge.net/;
|
||||||
|
@ -72,6 +72,7 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "bin" "dev" "out" ];
|
outputs = [ "bin" "dev" "out" ];
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
|
|
||||||
|
configurePlatforms = [];
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(enableFeature (vp8EncoderSupport || vp8DecoderSupport) "vp8")
|
(enableFeature (vp8EncoderSupport || vp8DecoderSupport) "vp8")
|
||||||
(enableFeature vp8EncoderSupport "vp8-encoder")
|
(enableFeature vp8EncoderSupport "vp8-encoder")
|
||||||
@ -131,8 +132,29 @@ stdenv.mkDerivation rec {
|
|||||||
(enableFeature (experimentalSpatialSvcSupport ||
|
(enableFeature (experimentalSpatialSvcSupport ||
|
||||||
experimentalFpMbStatsSupport ||
|
experimentalFpMbStatsSupport ||
|
||||||
experimentalEmulateHardwareSupport) "experimental")
|
experimentalEmulateHardwareSupport) "experimental")
|
||||||
# Experimental features
|
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
] ++ optional experimentalSpatialSvcSupport "--enable-spatial-svc"
|
#"--extra-cflags="
|
||||||
|
#"--extra-cxxflags="
|
||||||
|
#"--prefix="
|
||||||
|
#"--libc="
|
||||||
|
#"--libdir="
|
||||||
|
"--enable-external-build"
|
||||||
|
# libvpx darwin targets include darwin version (ie. ARCH-darwinXX-gcc, XX being the darwin version)
|
||||||
|
# See all_platforms: https://github.com/webmproject/libvpx/blob/master/configure
|
||||||
|
# Darwin versions: 10.4=8, 10.5=9, 10.6=10, 10.7=11, 10.8=12, 10.9=13, 10.10=14
|
||||||
|
"--force-target=${hostPlatform.config}${
|
||||||
|
if hostPlatform.isDarwin then
|
||||||
|
if hostPlatform.osxMinVersion == "10.10" then "14"
|
||||||
|
else if hostPlatform.osxMinVersion == "10.9" then "13"
|
||||||
|
else if hostPlatform.osxMinVersion == "10.8" then "12"
|
||||||
|
else if hostPlatform.osxMinVersion == "10.7" then "11"
|
||||||
|
else if hostPlatform.osxMinVersion == "10.6" then "10"
|
||||||
|
else if hostPlatform.osxMinVersion == "10.5" then "9"
|
||||||
|
else "8"
|
||||||
|
else ""}-gcc"
|
||||||
|
(if hostPlatform.isCygwin then "--enable-static-msvcrt" else "")
|
||||||
|
] # Experimental features
|
||||||
|
++ optional experimentalSpatialSvcSupport "--enable-spatial-svc"
|
||||||
++ optional experimentalFpMbStatsSupport "--enable-fp-mb-stats"
|
++ optional experimentalFpMbStatsSupport "--enable-fp-mb-stats"
|
||||||
++ optional experimentalEmulateHardwareSupport "--enable-emulate-hardware";
|
++ optional experimentalEmulateHardwareSupport "--enable-emulate-hardware";
|
||||||
|
|
||||||
@ -145,32 +167,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''moveToOutput bin "$bin" '';
|
postInstall = ''moveToOutput bin "$bin" '';
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
configurePlatforms = [];
|
|
||||||
configureFlags = configureFlags ++ [
|
|
||||||
#"--extra-cflags="
|
|
||||||
#"--extra-cxxflags="
|
|
||||||
#"--prefix="
|
|
||||||
#"--libc="
|
|
||||||
#"--libdir="
|
|
||||||
"--enable-external-build"
|
|
||||||
# libvpx darwin targets include darwin version (ie. ARCH-darwinXX-gcc, XX being the darwin version)
|
|
||||||
# See all_platforms: https://github.com/webmproject/libvpx/blob/master/configure
|
|
||||||
# Darwin versions: 10.4=8, 10.5=9, 10.6=10, 10.7=11, 10.8=12, 10.9=13, 10.10=14
|
|
||||||
"--force-target=${hostPlatform.config}${
|
|
||||||
if hostPlatform.isDarwin then
|
|
||||||
if hostPlatform.osxMinVersion == "10.10" then "14"
|
|
||||||
else if hostPlatform.osxMinVersion == "10.9" then "13"
|
|
||||||
else if hostPlatform.osxMinVersion == "10.8" then "12"
|
|
||||||
else if hostPlatform.osxMinVersion == "10.7" then "11"
|
|
||||||
else if hostPlatform.osxMinVersion == "10.6" then "10"
|
|
||||||
else if hostPlatform.osxMinVersion == "10.5" then "9"
|
|
||||||
else "8"
|
|
||||||
else ""}-gcc"
|
|
||||||
(if hostPlatform.isCygwin then "--enable-static-msvcrt" else "")
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "WebM VP8/VP9 codec SDK";
|
description = "WebM VP8/VP9 codec SDK";
|
||||||
homepage = https://www.webmproject.org/;
|
homepage = https://www.webmproject.org/;
|
||||||
|
@ -77,6 +77,7 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "bin" "dev" "out" ];
|
outputs = [ "bin" "dev" "out" ];
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
|
|
||||||
|
configurePlatforms = [];
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(enableFeature (vp8EncoderSupport || vp8DecoderSupport) "vp8")
|
(enableFeature (vp8EncoderSupport || vp8DecoderSupport) "vp8")
|
||||||
(enableFeature vp8EncoderSupport "vp8-encoder")
|
(enableFeature vp8EncoderSupport "vp8-encoder")
|
||||||
@ -139,23 +140,7 @@ stdenv.mkDerivation rec {
|
|||||||
(enableFeature (experimentalSpatialSvcSupport ||
|
(enableFeature (experimentalSpatialSvcSupport ||
|
||||||
experimentalFpMbStatsSupport ||
|
experimentalFpMbStatsSupport ||
|
||||||
experimentalEmulateHardwareSupport) "experimental")
|
experimentalEmulateHardwareSupport) "experimental")
|
||||||
# Experimental features
|
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
] ++ optional experimentalSpatialSvcSupport "--enable-spatial-svc"
|
|
||||||
++ optional experimentalFpMbStatsSupport "--enable-fp-mb-stats"
|
|
||||||
++ optional experimentalEmulateHardwareSupport "--enable-emulate-hardware";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ perl yasm ];
|
|
||||||
|
|
||||||
buildInputs = [ ]
|
|
||||||
++ optionals unitTestsSupport [ coreutils curl ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
postInstall = ''moveToOutput bin "$bin" '';
|
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
configurePlatforms = [];
|
|
||||||
configureFlags = configureFlags ++ [
|
|
||||||
#"--extra-cflags="
|
#"--extra-cflags="
|
||||||
#"--prefix="
|
#"--prefix="
|
||||||
#"--libc="
|
#"--libc="
|
||||||
@ -175,8 +160,19 @@ stdenv.mkDerivation rec {
|
|||||||
else "8"
|
else "8"
|
||||||
else ""}-gcc"
|
else ""}-gcc"
|
||||||
(if hostPlatform.isCygwin then "--enable-static-msvcrt" else "")
|
(if hostPlatform.isCygwin then "--enable-static-msvcrt" else "")
|
||||||
];
|
] # Experimental features
|
||||||
};
|
++ optional experimentalSpatialSvcSupport "--enable-spatial-svc"
|
||||||
|
++ optional experimentalFpMbStatsSupport "--enable-fp-mb-stats"
|
||||||
|
++ optional experimentalEmulateHardwareSupport "--enable-emulate-hardware";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ perl yasm ];
|
||||||
|
|
||||||
|
buildInputs = [ ]
|
||||||
|
++ optionals unitTestsSupport [ coreutils curl ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = ''moveToOutput bin "$bin" '';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "WebM VP8/VP9 codec SDK";
|
description = "WebM VP8/VP9 codec SDK";
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, libpcap, enableStatic ? false
|
{ stdenv, fetchurl, fetchpatch, libpcap }:
|
||||||
, hostPlatform
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "tcpdump-${version}";
|
name = "tcpdump-${version}";
|
||||||
@ -20,11 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ libpcap ];
|
buildInputs = [ libpcap ];
|
||||||
|
|
||||||
crossAttrs = {
|
configureFlags = stdenv.lib.optional
|
||||||
LDFLAGS = if enableStatic then "-static" else "";
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
"ac_cv_linux_vers=2";
|
||||||
(hostPlatform.platform.kernelMajor or null == "2.4") "--disable-ipv6");
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Network sniffer";
|
description = "Network sniffer";
|
||||||
|
@ -50,15 +50,14 @@ stdenv.mkDerivation rec {
|
|||||||
"ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
|
"ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
# Trick to get the build system find the proper 'native' groff
|
# Trick to get the build system find the proper 'native' groff
|
||||||
# http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html
|
# http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html
|
||||||
preBuild = ''
|
"GROFF_BIN_PATH=${buildPackages.groff}/bin"
|
||||||
makeFlags="GROFF_BIN_PATH=${buildPackages.groff}/bin GROFFBIN=${buildPackages.groff}/bin/groff"
|
"GROFFBIN=${buildPackages.groff}/bin/groff"
|
||||||
'';
|
];
|
||||||
};
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
# Remove example output with (random?) colors and creation date
|
# Remove example output with (random?) colors and creation date
|
||||||
# to avoid non-determinism in the output.
|
# to avoid non-determinism in the output.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user