lol

Merge branch 'staging'

+72 -91
-2
pkgs/applications/audio/csound/default.nix
··· 23 23 24 24 buildInputs = [ cmake libsndfile flex bison alsaLib libpulseaudio tcltk ]; 25 25 26 - NIX_LDFLAGS="-L${stdenv.cc.libc.out}/lib"; 27 - 28 26 meta = { 29 27 description = "sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms"; 30 28 homepage = http://www.csounds.com/;
+1 -1
pkgs/applications/display-managers/slim/default.nix
··· 34 34 35 35 buildInputs = 36 36 [ cmake pkgconfig libjpeg libpng fontconfig freetype 37 - pam dbus_libs (stdenv.cc.libc.out or null) 37 + pam dbus_libs 38 38 xorg.libX11 xorg.libXext xorg.libXrandr xorg.libXrender xorg.libXmu xorg.libXft makeWrapper 39 39 ]; 40 40
-1
pkgs/development/libraries/glfw/3.x.nix
··· 21 21 ]; 22 22 23 23 cmakeFlags = "-DBUILD_SHARED_LIBS=ON"; 24 - NIX_LDFLAGS= "-lpthread -L${stdenv.cc.libc.out}/lib"; 25 24 26 25 meta = with stdenv.lib; { 27 26 description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
+3 -2
pkgs/development/libraries/libgcrypt/default.nix
··· 3 3 assert enableCapabilities -> stdenv.isLinux; 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "libgcrypt-1.6.5"; 6 + name = "libgcrypt-${version}"; 7 + version = "1.7.0"; 7 8 8 9 src = fetchurl { 9 10 url = "mirror://gnupg/libgcrypt/${name}.tar.bz2"; 10 - sha256 = "0959mwfzsxhallxdqlw359xg180ll2skxwyy35qawmfl89cbr7pl"; 11 + sha256 = "14pspxwrqcgfklw3dgmywbxqwdzcym7fznfrqh9rk4vl8jkpxrmh"; 11 12 }; 12 13 13 14 outputs = [ "dev" "out" "info" ];
+1 -2
pkgs/development/libraries/nss_wrapper/default.nix
··· 8 8 sha256 = "0bysdijvi9n0jk74iklbfhbp0kvv81a727lcfd5q03q2hkzjfm18"; 9 9 }; 10 10 11 - buildInputs = [ cmake pkgconfig (stdenv.cc.libc.out or null) ]; 12 - # outputs TODO: missing glibc.out might become a general problem 11 + buildInputs = [ cmake pkgconfig ]; 13 12 14 13 meta = with stdenv.lib; { 15 14 description = "A wrapper for the user, group and hosts NSS API";
-1
pkgs/development/libraries/socket_wrapper/default.nix
··· 9 9 }; 10 10 11 11 nativeBuildInputs = [ cmake pkgconfig ]; 12 - buildInputs = [ (stdenv.cc.libc.out or null) ]; 13 12 14 13 meta = with stdenv.lib; { 15 14 description = "a library passing all socket communications through unix sockets";
-1
pkgs/development/libraries/uid_wrapper/default.nix
··· 9 9 }; 10 10 11 11 nativeBuildInputs = [ cmake pkgconfig ]; 12 - buildInputs = [ (stdenv.cc.libc.out or null) ]; 13 12 14 13 meta = with stdenv.lib; { 15 14 description = "a wrapper for the user, group and hosts NSS API";
-2
pkgs/development/libraries/x265/default.nix
··· 49 49 50 50 nativeBuildInputs = [ cmake yasm ]; 51 51 52 - NIX_LDFLAGS = "-L${stdenv.cc.libc.out}/lib"; #outputs TODO: this is strange 53 - 54 52 meta = with stdenv.lib; { 55 53 description = "Library for encoding h.265/HEVC video streams"; 56 54 homepage = http://x265.org;
+5 -2
pkgs/development/tools/build-managers/cmake/2.8.nix
··· 58 58 59 59 dontUseCmakeConfigure = true; 60 60 61 - preConfigure = optionalString (stdenv ? glibc) 61 + preConfigure = with stdenv; optionalString (stdenv ? glibc) 62 62 '' 63 63 source $setupHook 64 64 fixCmakeFiles . 65 - substituteInPlace Modules/Platform/UnixPaths.cmake --subst-var-by glibc ${stdenv.glibc} 65 + substituteInPlace Modules/Platform/UnixPaths.cmake \ 66 + --subst-var-by glibc_bin ${glibc.bin or glibc} \ 67 + --subst-var-by glibc_dev ${glibc.dev or glibc} \ 68 + --subst-var-by glibc_lib ${glibc.out or glibc} 66 69 ''; 67 70 68 71 meta = {
+24 -34
pkgs/development/tools/build-managers/cmake/search-path-3.2.patch
··· 1 - diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake 2 - index 20ee1d1..39834e6 100644 3 - --- a/Modules/Platform/UnixPaths.cmake 4 - +++ b/Modules/Platform/UnixPaths.cmake 5 - @@ -33,64 +33,18 @@ get_filename_component(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH) 1 + diff -ru3 cmake-3.4.3/Modules/Platform/UnixPaths.cmake cmake-3.4.3-new/Modules/Platform/UnixPaths.cmake 2 + --- cmake-3.4.3/Modules/Platform/UnixPaths.cmake 2016-01-25 19:57:19.000000000 +0300 3 + +++ cmake-3.4.3-new/Modules/Platform/UnixPaths.cmake 2016-04-14 00:20:08.963492213 +0300 4 + @@ -32,9 +32,6 @@ 5 + # List common installation prefixes. These will be used for all 6 6 # search types. 7 7 list(APPEND CMAKE_SYSTEM_PREFIX_PATH 8 - # Standard 8 + - # Standard 9 9 - /usr/local /usr / 10 10 - 11 - - # CMake install location 12 - - "${_CMAKE_INSTALL_DIR}" 13 - - ) 14 - -if (NOT CMAKE_FIND_NO_INSTALL_PREFIX) 15 - - list(APPEND CMAKE_SYSTEM_PREFIX_PATH 16 - - # Project install destination. 17 - - "${CMAKE_INSTALL_PREFIX}" 18 - - ) 19 - - if(CMAKE_STAGING_PREFIX) 20 - - list(APPEND CMAKE_SYSTEM_PREFIX_PATH 21 - - # User-supplied staging prefix. 22 - - "${CMAKE_STAGING_PREFIX}" 23 - - ) 24 - - endif() 25 - -endif() 26 - - 27 - -# List common include file locations not under the common prefixes. 28 - -list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 11 + # CMake install location 12 + "${_CMAKE_INSTALL_DIR}" 13 + ) 14 + @@ -53,44 +50,25 @@ 15 + 16 + # List common include file locations not under the common prefixes. 17 + list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 29 18 - # Windows API on Cygwin 30 19 - /usr/include/w32api 31 20 - ··· 36 25 - /usr/pkg/include 37 26 - /opt/csw/include /opt/include 38 27 - /usr/openwin/include 39 - - ) 28 + + @glibc_dev@/include 29 + ) 40 30 - 41 - -list(APPEND CMAKE_SYSTEM_LIBRARY_PATH 31 + list(APPEND CMAKE_SYSTEM_LIBRARY_PATH 42 32 - # Windows API on Cygwin 43 33 - /usr/lib/w32api 44 34 - ··· 49 39 - /usr/pkg/lib 50 40 - /opt/csw/lib /opt/lib 51 41 - /usr/openwin/lib 52 - - ) 53 - - 54 - -list(APPEND CMAKE_SYSTEM_PROGRAM_PATH 42 + + @glibc_lib@/lib 43 + ) 44 + 45 + list(APPEND CMAKE_SYSTEM_PROGRAM_PATH 55 46 - /usr/pkg/bin 56 - + "@glibc_bin@" 47 + + @glibc_bin@/bin 57 48 ) 58 49 59 50 list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES 60 51 - /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64 61 - + "@glibc_lib@/lib" 52 + + @glibc_lib@/lib 62 53 ) 63 54 64 55 list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES 65 56 - /usr/include 66 - + "@glibc_dev@/include" 57 + + @glibc_dev@/include 67 58 ) 68 59 list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES 69 60 - /usr/include 70 - + "@glibc_dev@/include" 61 + + @glibc_dev@/include 71 62 ) 72 63 73 64 # Enable use of lib64 search path variants by default. 74 -
+38 -43
pkgs/development/tools/build-managers/cmake/search-path.patch
··· 1 - diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake 2 - index fe8e003..378512c 100644 3 - --- a/Modules/Platform/Linux.cmake 4 - +++ b/Modules/Platform/Linux.cmake 5 - @@ -36,13 +36,13 @@ else() 1 + diff -ru3 cmake-2.8.12.2/Modules/Platform/Linux.cmake cmake-2.8.12.2-new/Modules/Platform/Linux.cmake 2 + --- cmake-2.8.12.2/Modules/Platform/Linux.cmake 2014-01-16 21:15:08.000000000 +0400 3 + +++ cmake-2.8.12.2-new/Modules/Platform/Linux.cmake 2016-04-13 22:00:32.928575740 +0300 4 + @@ -36,22 +36,11 @@ 6 5 # checking the platform every time. This option is advanced enough 7 6 # that only package maintainers should need to adjust it. They are 8 7 # capable of providing a setting on the command line. ··· 10 9 - set(CMAKE_INSTALL_SO_NO_EXE 1 CACHE INTERNAL 11 10 - "Install .so files without execute permission.") 12 11 - else() 13 - + # if(EXISTS "/etc/debian_version") 14 - + # set(CMAKE_INSTALL_SO_NO_EXE 1 CACHE INTERNAL 15 - + # "Install .so files without execute permission.") 16 - + # else() 17 - set(CMAKE_INSTALL_SO_NO_EXE 0 CACHE INTERNAL 18 - "Install .so files without execute permission.") 12 + - set(CMAKE_INSTALL_SO_NO_EXE 0 CACHE INTERNAL 13 + - "Install .so files without execute permission.") 19 14 - endif() 20 - + # endif() 15 + + set(CMAKE_INSTALL_SO_NO_EXE 0 CACHE INTERNAL 16 + + "Install .so files without execute permission.") 21 17 endif() 22 18 23 19 # Match multiarch library directory names. 24 - @@ -52,6 +52,6 @@ include(Platform/UnixPaths) 20 + set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-linux-gnu[a-z0-9_]*") 25 21 26 - # Debian has lib64 paths only for compatibility so they should not be 27 - # searched. 22 + include(Platform/UnixPaths) 23 + - 24 + -# Debian has lib64 paths only for compatibility so they should not be 25 + -# searched. 28 26 -if(EXISTS "/etc/debian_version") 29 27 - set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE) 30 28 -endif() 31 - +# if(EXISTS "/etc/debian_version") 32 - +# set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE) 33 - +#endif() 34 - diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake 35 - index ccb2663..39834e6 100644 36 - --- a/Modules/Platform/UnixPaths.cmake 37 - +++ b/Modules/Platform/UnixPaths.cmake 38 - @@ -33,55 +33,18 @@ get_filename_component(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH) 29 + diff -ru3 cmake-2.8.12.2/Modules/Platform/UnixPaths.cmake cmake-2.8.12.2-new/Modules/Platform/UnixPaths.cmake 30 + --- cmake-2.8.12.2/Modules/Platform/UnixPaths.cmake 2014-01-16 21:15:08.000000000 +0400 31 + +++ cmake-2.8.12.2-new/Modules/Platform/UnixPaths.cmake 2016-04-14 00:09:10.106362636 +0300 32 + @@ -32,9 +32,6 @@ 33 + # List common installation prefixes. These will be used for all 39 34 # search types. 40 35 list(APPEND CMAKE_SYSTEM_PREFIX_PATH 41 - # Standard 36 + - # Standard 42 37 - /usr/local /usr / 43 38 - 44 - - # CMake install location 45 - - "${_CMAKE_INSTALL_DIR}" 46 - - 47 - - # Project install destination. 48 - - "${CMAKE_INSTALL_PREFIX}" 49 - - ) 50 - - 51 - -# List common include file locations not under the common prefixes. 52 - -list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 39 + # CMake install location 40 + "${_CMAKE_INSTALL_DIR}" 41 + 42 + @@ -44,44 +41,26 @@ 43 + 44 + # List common include file locations not under the common prefixes. 45 + list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 53 46 - # Windows API on Cygwin 54 47 - /usr/include/w32api 55 48 - ··· 60 53 - /usr/pkg/include 61 54 - /opt/csw/include /opt/include 62 55 - /usr/openwin/include 63 - - ) 64 - - 65 - -list(APPEND CMAKE_SYSTEM_LIBRARY_PATH 56 + + @glibc_dev@/include 57 + ) 58 + 59 + list(APPEND CMAKE_SYSTEM_LIBRARY_PATH 66 60 - # Windows API on Cygwin 67 61 - /usr/lib/w32api 68 62 - ··· 73 67 - /usr/pkg/lib 74 68 - /opt/csw/lib /opt/lib 75 69 - /usr/openwin/lib 76 - - ) 77 - - 78 - -list(APPEND CMAKE_SYSTEM_PROGRAM_PATH 70 + + @glibc_lib@/lib 71 + ) 72 + 73 + list(APPEND CMAKE_SYSTEM_PROGRAM_PATH 79 74 - /usr/pkg/bin 80 - + "@glibc@" 75 + + @glibc_bin@/bin 81 76 ) 82 77 83 78 list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES 84 79 - /lib /usr/lib /usr/lib32 /usr/lib64 85 - + "@glibc@/lib" 80 + + @glibc_lib@/lib 86 81 ) 87 82 88 83 list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES 89 84 - /usr/include 90 - + "@glibc@/include" 85 + + @glibc_dev@/include 91 86 ) 92 87 list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES 93 88 - /usr/include 94 - + "@glibc@/include" 89 + + @glibc_dev@/include 95 90 ) 96 91 97 92 # Enable use of lib64 search path variants by default.