diff options
Diffstat (limited to 'pkgs/development/libraries')
39 files changed, 349 insertions, 733 deletions
diff --git a/pkgs/development/libraries/accounts-qt/default.nix b/pkgs/development/libraries/accounts-qt/default.nix index 315aab074e5..e2e5f079606 100644 --- a/pkgs/development/libraries/accounts-qt/default.nix +++ b/pkgs/development/libraries/accounts-qt/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase }: -let version = "1.13"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "accounts-qt-${version}"; + version = "1.13"; src = fetchFromGitLab { sha256 = "1gpkgw05dwsf2wk5cy3skgss3kw6mqh7iv3fadrxqxfc1za1xmyl"; @@ -11,17 +11,17 @@ stdenv.mkDerivation { owner = "accounts-sso"; }; - meta = with stdenv.lib; { - description = "Qt library for accessing the online accounts database"; - homepage = "http://code.google.com/p/accounts-sso/"; - license = licenses.lgpl21; - maintainers = with maintainers; [ nckx ]; - }; - buildInputs = [ glib libaccounts-glib qtbase ]; nativeBuildInputs = [ doxygen pkgconfig ]; configurePhase = '' qmake PREFIX=$out LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake ''; + + meta = with stdenv.lib; { + description = "Qt library for accessing the online accounts database"; + homepage = "http://code.google.com/p/accounts-sso/"; + license = licenses.lgpl21; + maintainers = with maintainers; [ nckx ]; + }; } diff --git a/pkgs/development/libraries/aterm/aterm-mingw-asm.patch b/pkgs/development/libraries/aterm/aterm-mingw-asm.patch deleted file mode 100644 index ce09ead9042..00000000000 --- a/pkgs/development/libraries/aterm/aterm-mingw-asm.patch +++ /dev/null @@ -1,498 +0,0 @@ -diff -rc aterm-2.8/aterm/gc.c aterm-2.8-new/aterm/gc.c -*** aterm-2.8/aterm/gc.c 2008-11-10 13:54:22.000000000 +0100 ---- aterm-2.8-new/aterm/gc.c 2010-08-23 17:04:56.000000000 +0200 -*************** -*** 260,317 **** - AFun oddSym; - #endif - -- #ifdef WIN32 -- -- unsigned int r_eax, r_ebx, r_ecx, r_edx, \ -- r_esi, r_edi, r_esp, r_ebp; -- ATerm reg[8], real_term; -- -- __asm { -- /* Get the registers into local variables to check them -- for aterms later. */ -- mov r_eax, eax -- mov r_ebx, ebx -- mov r_ecx, ecx -- mov r_edx, edx -- mov r_esi, esi -- mov r_edi, edi -- mov r_esp, esp -- mov r_ebp, ebp -- } -- /* Put the register-values into an array */ -- reg[0] = (ATerm) r_eax; -- reg[1] = (ATerm) r_ebx; -- reg[2] = (ATerm) r_ecx; -- reg[3] = (ATerm) r_edx; -- reg[4] = (ATerm) r_esi; -- reg[5] = (ATerm) r_edi; -- reg[6] = (ATerm) r_esp; -- reg[7] = (ATerm) r_ebp; -- -- for(i=0; i<8; i++) { -- real_term = AT_isInsideValidTerm(reg[i]); -- if (real_term != NULL) { -- AT_markTerm(real_term); -- } -- if (AT_isValidSymbol((Symbol)reg[i])) { -- AT_markSymbol((Symbol)reg[i]); -- } -- } -- -- /* The register variables are on the stack aswell -- I set them to zero so they won't be processed again when -- the stack is traversed. The reg-array is also in the stack -- but that will be adjusted later */ -- r_eax = 0; -- r_ebx = 0; -- r_ecx = 0; -- r_edx = 0; -- r_esi = 0; -- r_edi = 0; -- r_esp = 0; -- r_ebp = 0; -- -- #else - jmp_buf env; - - /* Traverse possible register variables */ ---- 260,265 ---- -*************** -*** 320,326 **** - start = (ATerm *)((char *)env); - stop = ((ATerm *)(((char *)env) + sizeof(jmp_buf))); - mark_memory(start, stop); -- #endif - - stackTop = stack_top(); - ---- 268,273 ---- -*************** -*** 385,442 **** - AFun oddSym; - #endif - -- #ifdef WIN32 -- -- unsigned int r_eax, r_ebx, r_ecx, r_edx, \ -- r_esi, r_edi, r_esp, r_ebp; -- ATerm reg[8], real_term; -- -- __asm { -- /* Get the registers into local variables to check them -- for aterms later. */ -- mov r_eax, eax -- mov r_ebx, ebx -- mov r_ecx, ecx -- mov r_edx, edx -- mov r_esi, esi -- mov r_edi, edi -- mov r_esp, esp -- mov r_ebp, ebp -- } -- /* Put the register-values into an array */ -- reg[0] = (ATerm) r_eax; -- reg[1] = (ATerm) r_ebx; -- reg[2] = (ATerm) r_ecx; -- reg[3] = (ATerm) r_edx; -- reg[4] = (ATerm) r_esi; -- reg[5] = (ATerm) r_edi; -- reg[6] = (ATerm) r_esp; -- reg[7] = (ATerm) r_ebp; -- -- for(i=0; i<8; i++) { -- real_term = AT_isInsideValidTerm(reg[i]); -- if (real_term != NULL) { -- AT_markTerm_young(real_term); -- } -- if (AT_isValidSymbol((Symbol)reg[i])) { -- AT_markSymbol_young((Symbol)reg[i]); -- } -- } -- -- /* The register variables are on the stack aswell -- I set them to zero so they won't be processed again when -- the stack is traversed. The reg-array is also in the stack -- but that will be adjusted later */ -- r_eax = 0; -- r_ebx = 0; -- r_ecx = 0; -- r_edx = 0; -- r_esi = 0; -- r_edi = 0; -- r_esp = 0; -- r_ebp = 0; -- -- #else - jmp_buf env; - - /* Traverse possible register variables */ ---- 332,337 ---- -*************** -*** 445,451 **** - start = (ATerm *)((char *)env); - stop = ((ATerm *)(((char *)env) + sizeof(jmp_buf))); - mark_memory_young(start, stop); -- #endif - - stackTop = stack_top(); - start = MIN(stackTop, stackBot); ---- 340,345 ---- -Only in aterm-2.8-new/aterm: gc.c.orig -diff -rc aterm-2.8/configure aterm-2.8-new/configure -*** aterm-2.8/configure 2008-11-10 13:54:27.000000000 +0100 ---- aterm-2.8-new/configure 2010-08-23 17:08:10.000000000 +0200 -*************** -*** 19970,20295 **** - CURDATE=`date` - - -- echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 -- echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 -- if test "${ac_cv_c_bigendian+set}" = set; then -- echo $ECHO_N "(cached) $ECHO_C" >&6 -- else -- # See if sys/param.h defines the BYTE_ORDER macro. -- cat >conftest.$ac_ext <<_ACEOF -- /* confdefs.h. */ -- _ACEOF -- cat confdefs.h >>conftest.$ac_ext -- cat >>conftest.$ac_ext <<_ACEOF -- /* end confdefs.h. */ -- #include <sys/types.h> -- #include <sys/param.h> -- -- int -- main () -- { -- #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN -- bogus endian macros -- #endif -- -- ; -- return 0; -- } -- _ACEOF -- rm -f conftest.$ac_objext -- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>conftest.er1 -- ac_status=$? -- grep -v '^ *+' conftest.er1 >conftest.err -- rm -f conftest.er1 -- cat conftest.err >&5 -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" -- || test ! -s conftest.err' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- # It does; now see whether it defined to BIG_ENDIAN or not. -- cat >conftest.$ac_ext <<_ACEOF -- /* confdefs.h. */ -- _ACEOF -- cat confdefs.h >>conftest.$ac_ext -- cat >>conftest.$ac_ext <<_ACEOF -- /* end confdefs.h. */ -- #include <sys/types.h> -- #include <sys/param.h> -- -- int -- main () -- { -- #if BYTE_ORDER != BIG_ENDIAN -- not big endian -- #endif -- -- ; -- return 0; -- } -- _ACEOF -- rm -f conftest.$ac_objext -- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>conftest.er1 -- ac_status=$? -- grep -v '^ *+' conftest.er1 >conftest.err -- rm -f conftest.er1 -- cat conftest.err >&5 -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" -- || test ! -s conftest.err' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- ac_cv_c_bigendian=yes -- else -- echo "$as_me: failed program was:" >&5 -- sed 's/^/| /' conftest.$ac_ext >&5 -- -- ac_cv_c_bigendian=no -- fi -- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -- else -- echo "$as_me: failed program was:" >&5 -- sed 's/^/| /' conftest.$ac_ext >&5 -- -- # It does not; compile a test program. -- if test "$cross_compiling" = yes; then -- # try to guess the endianness by grepping values into an object file -- ac_cv_c_bigendian=unknown -- cat >conftest.$ac_ext <<_ACEOF -- /* confdefs.h. */ -- _ACEOF -- cat confdefs.h >>conftest.$ac_ext -- cat >>conftest.$ac_ext <<_ACEOF -- /* end confdefs.h. */ -- short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; -- short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; -- void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } -- short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; -- short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; -- void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } -- int -- main () -- { -- _ascii (); _ebcdic (); -- ; -- return 0; -- } -- _ACEOF -- rm -f conftest.$ac_objext -- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>conftest.er1 -- ac_status=$? -- grep -v '^ *+' conftest.er1 >conftest.err -- rm -f conftest.er1 -- cat conftest.err >&5 -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" -- || test ! -s conftest.err' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then -- ac_cv_c_bigendian=yes -- fi -- if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then -- if test "$ac_cv_c_bigendian" = unknown; then -- ac_cv_c_bigendian=no -- else -- # finding both strings is unlikely to happen, but who knows? -- ac_cv_c_bigendian=unknown -- fi -- fi -- else -- echo "$as_me: failed program was:" >&5 -- sed 's/^/| /' conftest.$ac_ext >&5 -- -- fi -- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -- else -- cat >conftest.$ac_ext <<_ACEOF -- /* confdefs.h. */ -- _ACEOF -- cat confdefs.h >>conftest.$ac_ext -- cat >>conftest.$ac_ext <<_ACEOF -- /* end confdefs.h. */ -- int -- main () -- { -- /* Are we little or big endian? From Harbison&Steele. */ -- union -- { -- long l; -- char c[sizeof (long)]; -- } u; -- u.l = 1; -- exit (u.c[sizeof (long) - 1] == 1); -- } -- _ACEOF -- rm -f conftest$ac_exeext -- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- ac_cv_c_bigendian=no -- else -- echo "$as_me: program exited with status $ac_status" >&5 -- echo "$as_me: failed program was:" >&5 -- sed 's/^/| /' conftest.$ac_ext >&5 -- -- ( exit $ac_status ) -- ac_cv_c_bigendian=yes -- fi -- rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -- fi -- fi -- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -- fi -- echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 -- echo "${ECHO_T}$ac_cv_c_bigendian" >&6 -- case $ac_cv_c_bigendian in -- yes) -- -- cat >>confdefs.h <<\_ACEOF -- #define WORDS_BIGENDIAN 1 -- _ACEOF -- ;; -- no) -- ;; -- *) -- { { echo "$as_me:$LINENO: error: unknown endianness -- presetting ac_cv_c_bigendian=no (or yes) will help" >&5 -- echo "$as_me: error: unknown endianness -- presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} -- { (exit 1); exit 1; }; } ;; -- esac -- -- -- echo "$as_me:$LINENO: checking whether float word ordering is big endian" >&5 -- echo $ECHO_N "checking whether float word ordering is big endian... $ECHO_C" >&6 -- if test "${ax_cv_c_float_word_order_big+set}" = set; then -- echo $ECHO_N "(cached) $ECHO_C" >&6 -- else -- -- if test "$cross_compiling" = yes; then -- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -- See \`config.log' for more details." >&5 -- echo "$as_me: error: cannot run test program while cross compiling -- See \`config.log' for more details." >&2;} -- { (exit 1); exit 1; }; } -- else -- cat >conftest.$ac_ext <<_ACEOF -- -- /* This code returns 0 if the float word order is big endian and >= 1 if it is little endian. */ -- main(){ -- #ifdef WORDS_BIGENDIAN -- return 0; /* If the system's encoding is big endian, so is the float word order. NOTE: If the encoding is big endian and WORDS_BIGENDIAN isn't defined, the code below will still return the correct float word order (big). */ -- #else -- union -- { -- double d; -- /* IEEE754 little endian encoded floating point number structure with little endian float word order. */ -- struct{ -- unsigned int mantissa1:32; -- unsigned int mantissa0:20; -- unsigned int exponent:11; -- unsigned int negative:1; -- } ieee; -- } u; -- u.d = -1; -- return (u.ieee.negative == 1); -- #endif -- } -- -- _ACEOF -- rm -f conftest$ac_exeext -- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' -- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -- (eval $ac_try) 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then -- ax_cv_c_float_word_order_big=yes -- else -- echo "$as_me: program exited with status $ac_status" >&5 -- echo "$as_me: failed program was:" >&5 -- sed 's/^/| /' conftest.$ac_ext >&5 -- -- ( exit $ac_status ) -- ax_cv_c_float_word_order_big=no -- fi -- rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -- fi -- -- -- fi -- echo "$as_me:$LINENO: result: $ax_cv_c_float_word_order_big" >&5 -- echo "${ECHO_T}$ax_cv_c_float_word_order_big" >&6 -- -- case $ax_cv_c_float_word_order_big in -- yes) -- -- -- cat >>confdefs.h <<\_ACEOF -- #define FLOAT_WORD_ORDER_BIG 1 -- _ACEOF -- -- -- ;; -- no) -- ;; -- *) -- -- { { echo "$as_me:$LINENO: error: Unable to determain float word ordering. You need to manually preset ax_cv_c_float_word_order_big=(yes / no). -- " >&5 -- echo "$as_me: error: Unable to determain float word ordering. You need to manually preset ax_cv_c_float_word_order_big=(yes / no). -- " >&2;} -- { (exit 1); exit 1; }; } -- -- ;; -- esac -- -- - - - for ac_func in strdup ---- 19970,19975 ---- -diff -rc aterm-2.8/Makefile.in aterm-2.8-new/Makefile.in -*** aterm-2.8/Makefile.in 2008-11-10 13:54:28.000000000 +0100 ---- aterm-2.8-new/Makefile.in 2010-08-23 17:05:27.000000000 +0200 -*************** -*** 217,223 **** - - pkgconfig_DATA = ${PACKAGE}.pc - -! SUBDIRS = aterm utils test - - ACLOCAL_AMFLAGS = -I . - subdir = . ---- 217,223 ---- - - pkgconfig_DATA = ${PACKAGE}.pc - -! SUBDIRS = aterm utils - - ACLOCAL_AMFLAGS = -I . - subdir = . diff --git a/pkgs/development/libraries/audiofile/default.nix b/pkgs/development/libraries/audiofile/default.nix index 1fe6d7b15a8..c76115000cb 100644 --- a/pkgs/development/libraries/audiofile/default.nix +++ b/pkgs/development/libraries/audiofile/default.nix @@ -1,10 +1,13 @@ -{ stdenv, fetchurl, alsaLib }: +{ stdenv, fetchurl, alsaLib, AudioUnit, CoreServices }: stdenv.mkDerivation rec { name = "audiofile-0.3.6"; nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib; + buildInputs = (stdenv.lib.optional stdenv.isDarwin CoreServices) ++ + (stdenv.lib.optional stdenv.isDarwin AudioUnit); + src = fetchurl { url = "http://audiofile.68k.org/${name}.tar.gz"; sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"; @@ -14,7 +17,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "Library for reading and writing audio files in various formats"; - homepage = http://www.68k.org/~michael/audiofile/; + homepage = http://www.68k.org/~michael/audiofile/; license = licenses.lgpl21Plus; maintainers = with maintainers; [ lovek323 ]; platforms = platforms.unix; diff --git a/pkgs/development/libraries/bobcat/default.nix b/pkgs/development/libraries/bobcat/default.nix index 87eb1e324ce..b83fd0f7487 100644 --- a/pkgs/development/libraries/bobcat/default.nix +++ b/pkgs/development/libraries/bobcat/default.nix @@ -1,9 +1,9 @@ { stdenv, fetchFromGitHub, icmake, libmilter, libX11, openssl, readline , utillinux, yodl }: -let version = "4.00.00"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "bobcat-${version}"; + version = "4.00.00"; src = fetchFromGitHub { sha256 = "0wdb25sgw7i3jk3lbja6b4ipqfg1sncam6adg2bn8l5fcinrpwgs"; @@ -12,15 +12,6 @@ stdenv.mkDerivation { owner = "fbb-git"; }; - meta = with stdenv.lib; { - inherit version; - description = "Brokken's Own Base Classes And Templates"; - homepage = https://fbb-git.github.io/bobcat/; - license = licenses.gpl3; - platforms = platforms.linux; - maintainers = with maintainers; [ nckx ]; - }; - buildInputs = [ libmilter libX11 openssl readline utillinux ]; nativeBuildInputs = [ icmake yodl ]; @@ -39,4 +30,12 @@ stdenv.mkDerivation { installPhase = '' ./build install ''; + + meta = with stdenv.lib; { + description = "Brokken's Own Base Classes And Templates"; + homepage = https://fbb-git.github.io/bobcat/; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ nckx ]; + }; } diff --git a/pkgs/development/libraries/boost/boost-155-clang.patch b/pkgs/development/libraries/boost/boost-155-clang.patch deleted file mode 100644 index 9c4e3a74cd2..00000000000 --- a/pkgs/development/libraries/boost/boost-155-clang.patch +++ /dev/null @@ -1,90 +0,0 @@ -diff --git a/boost/atomic/detail/cas128strong.hpp b/boost/atomic/detail/cas128strong.hpp -index 906c13e..dcb4d7d 100644 ---- a/boost/atomic/detail/cas128strong.hpp -+++ b/boost/atomic/detail/cas128strong.hpp -@@ -196,15 +196,17 @@ class base_atomic<T, void, 16, Sign> - - public: - BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) -- explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) -+ explicit base_atomic(value_type const& v) BOOST_NOEXCEPT - { -+ memset(&v_, 0, sizeof(v_)); - memcpy(&v_, &v, sizeof(value_type)); - } - - void - store(value_type const& value, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT - { -- storage_type value_s = 0; -+ storage_type value_s; -+ memset(&value_s, 0, sizeof(value_s)); - memcpy(&value_s, &value, sizeof(value_type)); - platform_fence_before_store(order); - platform_store128(value_s, &v_); -@@ -247,7 +249,9 @@ class base_atomic<T, void, 16, Sign> - memory_order success_order, - memory_order failure_order) volatile BOOST_NOEXCEPT - { -- storage_type expected_s = 0, desired_s = 0; -+ storage_type expected_s, desired_s; -+ memset(&expected_s, 0, sizeof(expected_s)); -+ memset(&desired_s, 0, sizeof(desired_s)); - memcpy(&expected_s, &expected, sizeof(value_type)); - memcpy(&desired_s, &desired, sizeof(value_type)); - -diff --git a/boost/atomic/detail/gcc-atomic.hpp b/boost/atomic/detail/gcc-atomic.hpp -index a130590..4af99a1 100644 ---- a/boost/atomic/detail/gcc-atomic.hpp -+++ b/boost/atomic/detail/gcc-atomic.hpp -@@ -958,14 +958,16 @@ class base_atomic<T, void, 16, Sign> - - public: - BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) -- explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) -+ explicit base_atomic(value_type const& v) BOOST_NOEXCEPT - { -+ memset(&v_, 0, sizeof(v_)); - memcpy(&v_, &v, sizeof(value_type)); - } - - void store(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT - { -- storage_type tmp = 0; -+ storage_type tmp; -+ memset(&tmp, 0, sizeof(tmp)); - memcpy(&tmp, &v, sizeof(value_type)); - __atomic_store_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); - } -@@ -980,7 +982,8 @@ class base_atomic<T, void, 16, Sign> - - value_type exchange(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT - { -- storage_type tmp = 0; -+ storage_type tmp; -+ memset(&tmp, 0, sizeof(tmp)); - memcpy(&tmp, &v, sizeof(value_type)); - tmp = __atomic_exchange_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); - value_type res; -@@ -994,7 +997,9 @@ class base_atomic<T, void, 16, Sign> - memory_order success_order, - memory_order failure_order) volatile BOOST_NOEXCEPT - { -- storage_type expected_s = 0, desired_s = 0; -+ storage_type expected_s, desired_s; -+ memset(&expected_s, 0, sizeof(expected_s)); -+ memset(&desired_s, 0, sizeof(desired_s)); - memcpy(&expected_s, &expected, sizeof(value_type)); - memcpy(&desired_s, &desired, sizeof(value_type)); - const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, false, -@@ -1010,7 +1015,9 @@ class base_atomic<T, void, 16, Sign> - memory_order success_order, - memory_order failure_order) volatile BOOST_NOEXCEPT - { -- storage_type expected_s = 0, desired_s = 0; -+ storage_type expected_s, desired_s; -+ memset(&expected_s, 0, sizeof(expected_s)); -+ memset(&desired_s, 0, sizeof(desired_s)); - memcpy(&expected_s, &expected, sizeof(value_type)); - memcpy(&desired_s, &desired, sizeof(value_type)); - const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, true, diff --git a/pkgs/development/libraries/cpp-netlib/default.nix b/pkgs/development/libraries/cpp-netlib/default.nix index 685d095a818..64b223d4ebb 100644 --- a/pkgs/development/libraries/cpp-netlib/default.nix +++ b/pkgs/development/libraries/cpp-netlib/default.nix @@ -1,11 +1,8 @@ { stdenv, fetchurl, cmake, boost, openssl }: -let - version = "0.11.2"; -in - stdenv.mkDerivation rec { name = "cpp-netlib-${version}"; + version = "0.11.2"; src = fetchurl { url = "http://downloads.cpp-netlib.org/${version}/${name}-final.tar.bz2"; @@ -19,7 +16,6 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with stdenv.lib; { - inherit version; description = "A collection of open-source libraries for high level network programming"; homepage = http://cpp-netlib.org; license = licenses.boost; diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index 538a40615f1..9a3303684a1 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -68,12 +68,17 @@ stdenv.mkDerivation rec { configureFlags = optional stdenv.isDarwin "--disable-compile-warnings" - ++ optional stdenv.isFreeBSD "--with-libiconv=gnu" - ++ optional stdenv.isSunOS ["--disable-modular-tests" "--with-libiconv"]; + ++ optional (stdenv.isFreeBSD || stdenv.isSunOS) "--with-libiconv=gnu" + ++ optional stdenv.isSunOS "--disable-dtrace"; NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl" + optionalString stdenv.isSunOS " -DBSD_COMP"; + preConfigure = if !stdenv.isSunOS then null else + '' + sed -i -e 's|inotify.h|foobar-inotify.h|g' configure + ''; + preBuild = optionalString stdenv.isDarwin '' export MACOSX_DEPLOYMENT_TARGET= diff --git a/pkgs/development/libraries/gmock/default.nix b/pkgs/development/libraries/gmock/default.nix index 71ac281195b..926832dbada 100644 --- a/pkgs/development/libraries/gmock/default.nix +++ b/pkgs/development/libraries/gmock/default.nix @@ -1,15 +1,15 @@ -{ stdenv, fetchurl, unzip, cmake}: +{ stdenv, cmake, fetchzip }: stdenv.mkDerivation rec { - version = "1.7.0"; name = "gmock-${version}"; + version = "1.7.0"; - src = fetchurl { - url = "https://googlemock.googlecode.com/files/${name}.zip"; - sha256="26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b"; + src = fetchzip { + url = "https://googlemock.googlecode.com/files/gmock-${version}.zip"; + sha256 = "04n9p6pf3mrqsabrsncv32d3fqvd86zmcdq3gyni7liszgfk0paz"; }; - buildInputs = [ unzip cmake ]; + buildInputs = [ cmake ]; buildPhase = '' # avoid building gtest @@ -29,4 +29,6 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.bsd3; maintainers = [ stdenv.lib.maintainers.auntie ]; }; + + passthru = { source = src; }; } diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 1657ceaeece..4572387e225 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -5,10 +5,8 @@ assert useGnupg1 -> gnupg1 != null; assert !useGnupg1 -> gnupg != null; let - gpgPath = if useGnupg1 then - "${gnupg1}/bin/gpg" - else - "${gnupg}/bin/gpg2"; + gpgStorePath = if useGnupg1 then gnupg1 else gnupg; + gpgProgram = if useGnupg1 then "gpg" else "gpg2"; in stdenv.mkDerivation rec { name = "gpgme-1.6.0"; @@ -22,7 +20,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig gnupg ]; - configureFlags = "--with-gpg=${gpgPath}"; + configureFlags = [ + "--with-gpg=${gpgStorePath}/bin/${gpgProgram}" + "--enable-fixed-path=${gpgStorePath}/bin" + ]; meta = { homepage = "http://www.gnupg.org/related_software/gpgme"; diff --git a/pkgs/development/libraries/id3lib/default.nix b/pkgs/development/libraries/id3lib/default.nix index 0ea1e96947e..9f880e3ea9f 100644 --- a/pkgs/development/libraries/id3lib/default.nix +++ b/pkgs/development/libraries/id3lib/default.nix @@ -3,7 +3,10 @@ stdenv.mkDerivation { name = "id3lib-3.8.3"; - patches = [ ./id3lib-3.8.3-gcc43-1.patch ]; + patches = [ + ./id3lib-3.8.3-gcc43-1.patch + ./patch_id3lib_3.8.3_UTF16_writing_bug.diff + ]; buildInputs = [ zlib ]; diff --git a/pkgs/development/libraries/id3lib/patch_id3lib_3.8.3_UTF16_writing_bug.diff b/pkgs/development/libraries/id3lib/patch_id3lib_3.8.3_UTF16_writing_bug.diff new file mode 100644 index 00000000000..b05d2cf298d --- /dev/null +++ b/pkgs/development/libraries/id3lib/patch_id3lib_3.8.3_UTF16_writing_bug.diff @@ -0,0 +1,39 @@ +diff -ruN id3lib-3.8.3.orig/ChangeLog id3lib-3.8.3/ChangeLog +--- id3lib-3.8.3.orig/ChangeLog 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/ChangeLog 2006-02-22 00:33:59.946214472 +0100 +@@ -1,3 +1,8 @@ ++2006-02-17 Jerome Couderc ++ ++ * Patch from Spoon to fix UTF-16 writing bug ++ http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979 ++ + 2003-03-02 Sunday 17:38 Thijmen Klok <thijmen@id3lib.org> + + * THANKS (1.20): added more people +diff -ruN id3lib-3.8.3.orig/src/io_helpers.cpp id3lib-3.8.3/src/io_helpers.cpp +--- id3lib-3.8.3.orig/src/io_helpers.cpp 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/src/io_helpers.cpp 2006-02-22 00:35:02.926639992 +0100 +@@ -363,11 +363,22 @@ + // Write the BOM: 0xFEFF + unicode_t BOM = 0xFEFF; + writer.writeChars((const unsigned char*) &BOM, 2); ++ // Patch from Spoon : 2004-08-25 14:17 ++ // http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979 ++ // Wrong code ++ //for (size_t i = 0; i < size; i += 2) ++ //{ ++ // unicode_t ch = (data[i] << 8) | data[i+1]; ++ // writer.writeChars((const unsigned char*) &ch, 2); ++ //} ++ // Right code ++ unsigned char *pdata = (unsigned char *) data.c_str(); + for (size_t i = 0; i < size; i += 2) + { +- unicode_t ch = (data[i] << 8) | data[i+1]; ++ unicode_t ch = (pdata[i] << 8) | pdata[i+1]; + writer.writeChars((const unsigned char*) &ch, 2); + } ++ // End patch + } + return writer.getCur() - beg; + } diff --git a/pkgs/development/libraries/ip2location-c/default.nix b/pkgs/development/libraries/ip2location-c/default.nix index 7bf4e746db4..109510df79b 100644 --- a/pkgs/development/libraries/ip2location-c/default.nix +++ b/pkgs/development/libraries/ip2location-c/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl, autoreconfHook }: -let version = "7.0.2"; in # meta.homepage might change after a major update -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "ip2location-c-${version}"; + version = "7.0.2"; # meta.homepage might change after a major update src = fetchurl { sha256 = "1gs43qgcyfn83abrkhvvw1s67d1sbkbj3hab9m17ysn6swafiycx"; @@ -18,7 +18,6 @@ stdenv.mkDerivation { doCheck = false; meta = with stdenv.lib; { - inherit version; description = "Library to look up locations of host names and IP addresses"; longDescription = '' A C library to find the country, region, city,coordinates, diff --git a/pkgs/development/libraries/java/jflex/builder.sh b/pkgs/development/libraries/java/jflex/builder.sh deleted file mode 100755 index d95feb5eeb4..00000000000 --- a/pkgs/development/libraries/java/jflex/builder.sh +++ /dev/null @@ -1,6 +0,0 @@ -set -e -source $stdenv/setup - -tar zxvf $src -mkdir -p $out -mv $name/* $out diff --git a/pkgs/development/libraries/java/jflex/default.nix b/pkgs/development/libraries/java/jflex/default.nix index 5e54e800f55..12f9995b56a 100644 --- a/pkgs/development/libraries/java/jflex/default.nix +++ b/pkgs/development/libraries/java/jflex/default.nix @@ -1,11 +1,26 @@ {stdenv, fetchurl} : -stdenv.mkDerivation { - name = "jflex-1.4.3"; - builder = ./builder.sh; +stdenv.mkDerivation rec { + name = "jflex-1.6.1"; src = fetchurl { - url = http://jflex.de/jflex-1.4.3.tar.gz; - sha256 = "0sm74sgjvw01fsiqr5q9ipbm8rfyihf6yn00dqymhyc3wmbhr517"; + url = "http://jflex.de/${name}.tar.gz"; + sha256 = "1h7q2vhb4s42g4pqz5xxxliagprray7i9krr6hyaz1mjlx7gnycq"; + }; + + sourceRoot = name; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + mkdir -p $out + cp -a * $out + patchShebangs $out + ''; + + meta = { + homepage = http://www.jflex.de/; + description = "Lexical analyzer generator for Java, written in Java"; + license = stdenv.lib.licenses.bsd3; }; } diff --git a/pkgs/development/libraries/libcli/default.nix b/pkgs/development/libraries/libcli/default.nix index 7798eb5f8fc..1c247f6faa8 100644 --- a/pkgs/development/libraries/libcli/default.nix +++ b/pkgs/development/libraries/libcli/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub }: -let version = "1.9.7"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "libcli-${version}"; + version = "1.9.7"; src = fetchFromGitHub { sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c"; diff --git a/pkgs/development/libraries/libconfuse/default.nix b/pkgs/development/libraries/libconfuse/default.nix new file mode 100644 index 00000000000..dbe818ba561 --- /dev/null +++ b/pkgs/development/libraries/libconfuse/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, flex }: + +stdenv.mkDerivation rec { + name = "libconfuse-${version}"; + version = "2.8"; + + src = fetchFromGitHub { + sha256 = "0s0asxnml4rlv17ijz5w57x949anag28wx7wdahqx6mgqz0w2j2k"; + rev = "v${version}"; + repo = "libconfuse"; + owner = "martinh"; + }; + + nativeBuildInputs = [ autoreconfHook flex ]; + + enableParallelBuilding = true; + + doCheck = true; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "Small configuration file parser library for C"; + longDescription = '' + libConfuse (previously libcfg) is a configuration file parser library + written in C. It supports sections and (lists of) values, as well as + some other features. It makes it very easy to add configuration file + capability to a program using a simple API. + + The goal of libConfuse is not to be the configuration file parser library + with a gazillion of features. Instead, it aims to be easy to use and + quick to integrate with your code. + ''; + license = licenses.isc; + platforms = platforms.linux; + maintainers = with maintainers; [ nckx ]; + }; +} diff --git a/pkgs/development/libraries/libedit/freebsd_weak_ref.patch b/pkgs/development/libraries/libedit/freebsd_weak_ref.patch deleted file mode 100644 index a4399593d63..00000000000 --- a/pkgs/development/libraries/libedit/freebsd_weak_ref.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- libedit-20110709-3.0/src/vi.c.old 2011-07-11 18:21:16.000000000 +0000 -+++ libedit-20110709-3.0/src/vi.c 2011-07-11 18:24:29.000000000 +0000 -@@ -918,7 +918,7 @@ - * NB: posix implies that we should enter insert mode, however - * this is against historical precedent... - */ --#ifdef __weak_reference -+#if defined(__weak_reference) && defined(__NetBSD__) - __weakref_visible char *my_get_alias_text(const char *) - __weak_reference(get_alias_text); - #endif -@@ -926,7 +926,7 @@ - /*ARGSUSED*/ - vi_alias(EditLine *el, Int c) - { --#ifdef __weak_reference -+#if defined(__weak_reference) && defined(__NetBSD__) - char alias_name[3]; - char *alias_text; - diff --git a/pkgs/development/libraries/libgdiplus/default.nix b/pkgs/development/libraries/libgdiplus/default.nix index 56bc72acff0..60995046982 100644 --- a/pkgs/development/libraries/libgdiplus/default.nix +++ b/pkgs/development/libraries/libgdiplus/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, glib, cairo, fontconfig +{ stdenv, fetchurl, pkgconfig, glib, cairo, Carbon, fontconfig , libtiff, giflib, libungif, libjpeg, libpng, monoDLLFixer , libXrender, libexif }: @@ -25,5 +25,6 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig glib cairo fontconfig libtiff giflib libungif libjpeg libpng libXrender libexif - ]; + ] + ++ stdenv.lib.optional stdenv.isDarwin Carbon; } diff --git a/pkgs/development/libraries/libkeyfinder/default.nix b/pkgs/development/libraries/libkeyfinder/default.nix index bde5db77fda..9ea4748af4b 100644 --- a/pkgs/development/libraries/libkeyfinder/default.nix +++ b/pkgs/development/libraries/libkeyfinder/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, fftw, qtbase }: -let version = "2.1"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "libkeyfinder-${version}"; + version = "2.1"; src = fetchFromGitHub { sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7"; @@ -11,15 +11,6 @@ stdenv.mkDerivation { owner = "ibsh"; }; - meta = with stdenv.lib; { - inherit version; - description = "Musical key detection for digital audio (C++ library)"; - homepage = http://www.ibrahimshaath.co.uk/keyfinder/; - license = licenses.gpl3Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ nckx ]; - }; - buildInputs = [ fftw qtbase ]; postPatch = '' @@ -40,4 +31,12 @@ stdenv.mkDerivation { mkdir -p $out/lib cp -a lib*.so* $out/lib ''; + + meta = with stdenv.lib; { + description = "Musical key detection for digital audio (C++ library)"; + homepage = http://www.ibrahimshaath.co.uk/keyfinder/; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ nckx ]; + }; } diff --git a/pkgs/development/libraries/libnetfilter_conntrack/default.nix b/pkgs/development/libraries/libnetfilter_conntrack/default.nix index 72aaa1593cc..75cca9a028e 100644 --- a/pkgs/development/libraries/libnetfilter_conntrack/default.nix +++ b/pkgs/development/libraries/libnetfilter_conntrack/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl, pkgconfig, libnfnetlink, libmnl }: -let version = "1.0.5"; in stdenv.mkDerivation rec { name = "libnetfilter_conntrack-${version}"; + version = "1.0.5"; src = fetchurl { url = "http://netfilter.org/projects/libnetfilter_conntrack/files/${name}.tar.bz2"; @@ -14,7 +14,6 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; meta = with stdenv.lib; { - inherit version; description = "Userspace library providing an API to the in-kernel connection tracking state table"; longDescription = '' libnetfilter_conntrack is a userspace library providing a programming interface (API) to the diff --git a/pkgs/development/libraries/libpsl/default.nix b/pkgs/development/libraries/libpsl/default.nix index 7368729a881..1dc4c57e979 100644 --- a/pkgs/development/libraries/libpsl/default.nix +++ b/pkgs/development/libraries/libpsl/default.nix @@ -3,20 +3,19 @@ let - version = "${libVersion}-list-${listVersion}"; - - listVersion = "2016-01-09"; + listVersion = "2016-01-15"; listSources = fetchFromGitHub { - sha256 = "1xsal9vyan954ahyn9pxvqpipmpcf6drp30xz7ag5xp3f2clcx8s"; - rev = "0f7cc8b00498812ddaa983c56d67ef3713e48350"; + sha256 = "1smn4fl0fhldy7gdn0k1diyghbxdxnr4cj921bjdl2i4wxas41g5"; + rev = "77cb90dce70827bda40384e1ae8bff3c958daef3"; repo = "list"; owner = "publicsuffix"; }; libVersion = "0.12.0"; -in stdenv.mkDerivation { +in stdenv.mkDerivation rec { name = "libpsl-${version}"; + version = "${libVersion}-list-${listVersion}"; src = fetchFromGitHub { sha256 = "13w3lc752az2swymg408f3w2lbqs0f2h5ri6d5jw1vv9z0ij9xlw"; @@ -54,7 +53,6 @@ in stdenv.mkDerivation { doCheck = true; meta = with stdenv.lib; { - inherit version; description = "C library for the Publix Suffix List"; longDescription = '' libpsl is a C library for the Publix Suffix List (PSL). A "public suffix" diff --git a/pkgs/development/libraries/libressl/2.2.nix b/pkgs/development/libraries/libressl/2.2.nix index 89e7e6507e4..a3389a49fbc 100644 --- a/pkgs/development/libraries/libressl/2.2.nix +++ b/pkgs/development/libraries/libressl/2.2.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "libressl-${version}"; - version = "2.2.5"; + version = "2.2.6"; src = fetchurl { url = "mirror://openbsd/LibreSSL/${name}.tar.gz"; - sha256 = "0jwidi7fafcdh5qml72dx0ad0kfsk94qxzm29i7wd3cx8v8dxjp3"; + sha256 = "0kynb15l5gq1qgp3p4ncn20sc65sbl8lk89vyr07s17xrya9kq8y"; }; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/libressl/2.3.nix b/pkgs/development/libraries/libressl/2.3.nix index d9981f9b0c5..a87e599cbc0 100644 --- a/pkgs/development/libraries/libressl/2.3.nix +++ b/pkgs/development/libraries/libressl/2.3.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "libressl-${version}"; - version = "2.3.1"; + version = "2.3.2"; src = fetchurl { url = "mirror://openbsd/LibreSSL/${name}.tar.gz"; - sha256 = "410b58db4ebbcab43c3357612e591094f64fb9339269caa2e68728e36f8d589e"; + sha256 = "0sm9cjjqvj581sfd4sh0i467sh8p89nq9b8ck2qn3war92p5zx40"; }; enableParallelBuilding = true; @@ -15,6 +15,6 @@ stdenv.mkDerivation rec { description = "Free TLS/SSL implementation"; homepage = "http://www.libressl.org"; platforms = platforms.all; - maintainers = with maintainers; [ thoughtpolice wkennington fpletz ]; + maintainers = with maintainers; [ thoughtpolice wkennington fpletz globin ]; }; } diff --git a/pkgs/development/libraries/libutempter/default.nix b/pkgs/development/libraries/libutempter/default.nix new file mode 100644 index 00000000000..8481f857b2c --- /dev/null +++ b/pkgs/development/libraries/libutempter/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, lib, glib }: + +with lib; + +stdenv.mkDerivation rec { + name = "libutempter-${version}"; + version = "1.1.6"; + + src = fetchurl { + url = "http://archive.ubuntu.com/ubuntu/pool/main/libu/libutempter/libutempter_${version}.orig.tar.bz2"; + sha256 = "15y3xbgznjxnfmix4xg3bwmqdvghdw7slbhazb0ybmyf65gmd65q"; + }; + + buildInputs = [ glib ]; + + installFlags = [ + "libdir=\${out}/lib" + "libexecdir=\${out}/lib" + "includedir=\${out}/include" + "mandir=\${out}/share/man" + ]; + + meta = { + description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files"; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = [ maintainers.msteen ]; + }; +} diff --git a/pkgs/development/libraries/libva/default.nix b/pkgs/development/libraries/libva/default.nix index 12de07ced32..e8de6ac284e 100644 --- a/pkgs/development/libraries/libva/default.nix +++ b/pkgs/development/libraries/libva/default.nix @@ -1,18 +1,31 @@ -{ stdenv, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi -, mesa ? null +{ stdenv, lib, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi +, mesa_noglu ? null }: -stdenv.mkDerivation rec { - name = "libva-1.6.1"; +let + withMesa = mesa_noglu != null; +in stdenv.mkDerivation rec { + name = "libva-1.6.2"; src = fetchurl { url = "http://www.freedesktop.org/software/vaapi/releases/libva/${name}.tar.bz2"; - sha256 = "0bjfb5s8dk3lql843l91ffxzlq47isqks5sj19cxh7j3nhzw58kz"; + sha256 = "1l4bij21shqbfllbxicmqgmay4v509v9hpxyyia9wm7gvsfg05y4"; }; - buildInputs = [ libX11 libXext pkgconfig libdrm libXfixes wayland libffi mesa ]; + buildInputs = [ libX11 libXext pkgconfig libdrm libXfixes wayland libffi mesa_noglu ]; - configureFlags = stdenv.lib.optional (mesa != null) "--enable-glx"; + configureFlags = lib.optionals withMesa [ + "--with-drivers-path=${mesa_noglu.driverLink}/lib/dri" + "--enable-glx" + ]; + + installFlags = lib.optional withMesa "DESTDIR=$(out)"; + + postInstall = lib.optionalString withMesa '' + cp -r $out/${mesa_noglu.driverLink}/* $out + cp -r $out/$out/* $out + rm -rf $out/run $out/$(echo "$out" | cut -d "/" -f2) + ''; meta = with stdenv.lib; { homepage = http://www.freedesktop.org/wiki/Software/vaapi; diff --git a/pkgs/development/libraries/libvdpau-va-gl/default.nix b/pkgs/development/libraries/libvdpau-va-gl/default.nix new file mode 100644 index 00000000000..51fb858d8be --- /dev/null +++ b/pkgs/development/libraries/libvdpau-va-gl/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig, libX11, libpthreadstubs, libvdpau, glib +, libva, ffmpeg, mesa_glu }: + +let + version = "0.3.4"; + +in stdenv.mkDerivation rec { + name = "libvdpau-va-gl-${version}"; + + src = fetchFromGitHub { + owner = "i-rinat"; + repo = "libvdpau-va-gl"; + rev = "v${version}"; + sha256 = "1909f3srm2iy2hv4m6jxg1nxrh9xgsnjs07wfzw3ais1fww0i2nn"; + }; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ libX11 libpthreadstubs libvdpau glib libva ffmpeg mesa_glu ]; + + meta = with stdenv.lib; { + homepage = https://github.com/i-rinat/libvdpau-va-gl; + description = "VDPAU driver with OpenGL/VAAPI backend"; + license = licenses.lgpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar ]; + }; +} diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index 6c5d5a91ad8..f38cc51f6c2 100644 --- a/pkgs/development/libraries/libvdpau/default.nix +++ b/pkgs/development/libraries/libvdpau/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, xorg }: +{ stdenv, fetchurl, pkgconfig, xorg, mesa_noglu }: stdenv.mkDerivation rec { name = "libvdpau-1.1.1"; @@ -12,6 +12,16 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ xorg.libX11 ]; + configureFlags = [ "--with-module-dir=${mesa_noglu.driverLink}/lib/vdpau" ]; + + installFlags = [ "DESTDIR=$(out)" ]; + + postInstall = '' + cp -r $out/${mesa_noglu.driverLink}/* $out + cp -r $out/$out/* $out + rm -rf $out/run $out/$(echo "$out" | cut -d "/" -f2) + ''; + meta = with stdenv.lib; { homepage = http://people.freedesktop.org/~aplattner/vdpau/; description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)"; diff --git a/pkgs/development/libraries/libxcomp/default.nix b/pkgs/development/libraries/libxcomp/default.nix index 3a65277abe2..b19706c2c37 100644 --- a/pkgs/development/libraries/libxcomp/default.nix +++ b/pkgs/development/libraries/libxcomp/default.nix @@ -1,23 +1,14 @@ { stdenv, fetchurl, autoreconfHook, libjpeg, libpng12, libX11, zlib }: -let version = "3.5.0.32"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "libxcomp-${version}"; + version = "3.5.0.32"; src = fetchurl { sha256 = "02n5bdc1jsq999agb4w6dmdj5l2wlln2lka84qz6rpswwc59zaxm"; url = "http://code.x2go.org/releases/source/nx-libs/nx-libs-${version}-lite.tar.gz"; }; - meta = with stdenv.lib; { - inherit version; - description = "NX compression library"; - homepage = "http://wiki.x2go.org/doku.php/wiki:libs:nx-libs"; - license = licenses.gpl2; - platforms = platforms.linux; - maintainers = with maintainers; [ nckx ]; - }; - buildInputs = [ libjpeg libpng12 libX11 zlib ]; nativeBuildInputs = [ autoreconfHook ]; @@ -26,4 +17,12 @@ stdenv.mkDerivation { ''; enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "NX compression library"; + homepage = "http://wiki.x2go.org/doku.php/wiki:libs:nx-libs"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ nckx ]; + }; } diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index c6af00d08b8..367159b4253 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -22,7 +22,7 @@ else */ let - version = "11.0.8"; + version = "11.1.1"; # this is the default search path for DRI drivers driverLink = "/run/opengl-driver" + stdenv.lib.optionalString stdenv.isi686 "-32"; in @@ -38,7 +38,7 @@ stdenv.mkDerivation { + head (splitString "." version) + ''.x/${version}/mesa-${version}.tar.xz'') "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz" ]; - sha256 = "5696e4730518b6805d2ed5def393c4293f425a2c2c01bd5ed4bdd7ad62f7ad75"; + sha256 = "087xlxl8dzmhzjilpsdiy19dn106spq120c9ndgnn4qlqm7hgnv4"; }; prePatch = "patchShebangs ."; @@ -154,8 +154,6 @@ stdenv.mkDerivation { done '' + /* set the default search path for DRI drivers; used e.g. by X server */ '' substituteInPlace "$out/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}" - '' + /* move vdpau drivers to $drivers/lib, so they are found */ '' - mv "$drivers"/lib/vdpau/* "$drivers"/lib/ && rmdir "$drivers"/lib/vdpau ''; #ToDo: @vcunat isn't sure if drirc will be found when in $out/etc/, but it doesn't seem important ATM diff --git a/pkgs/development/libraries/openssl/1.0.2.x.nix b/pkgs/development/libraries/openssl/1.0.2.x.nix index 0c9c62dfb92..c94033d0fef 100644 --- a/pkgs/development/libraries/openssl/1.0.2.x.nix +++ b/pkgs/development/libraries/openssl/1.0.2.x.nix @@ -8,14 +8,14 @@ let stdenv.cross; in stdenv.mkDerivation rec { - name = "openssl-1.0.2e"; + name = "openssl-1.0.2f"; src = fetchurl { urls = [ "http://www.openssl.org/source/${name}.tar.gz" "http://openssl.linux-mirror.org/source/${name}.tar.gz" ]; - sha256 = "1zqb1rff1wikc62a7vj5qxd1k191m8qif5d05mwdxz2wnzywlg72"; + sha256 = "932b4ee4def2b434f85435d9e3e19ca8ba99ce9a065a61524b429a9d5e9b2e9c"; }; patches = optional stdenv.isCygwin ./1.0.1-cygwin64.patch; diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 21e7706be8c..4e009e5306d 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -8,14 +8,14 @@ let stdenv.cross; in stdenv.mkDerivation rec { - name = "openssl-1.0.1q"; + name = "openssl-1.0.1r"; src = fetchurl { urls = [ "http://www.openssl.org/source/${name}.tar.gz" "http://openssl.linux-mirror.org/source/${name}.tar.gz" ]; - sha256 = "1dvz0hx7fjxag06b51pawy154y6d2xajm5rwxmfnlq7ax628nrdk"; + sha256 = "0iik7a3b0mrfrxzngdf7ywfscg9inbw77y0jp2ccw0gdap9xhjvq"; }; outputs = [ "out" "man" ]; diff --git a/pkgs/development/libraries/protobuf/3.0.nix b/pkgs/development/libraries/protobuf/3.0.nix index 900c9dc5a51..a06d4cef968 100644 --- a/pkgs/development/libraries/protobuf/3.0.nix +++ b/pkgs/development/libraries/protobuf/3.0.nix @@ -1,12 +1,43 @@ -{ callPackage, fetchFromGitHub, ... } @ args: +{ stdenv, fetchFromGitHub , autoreconfHook, zlib, gmock }: -callPackage ./generic.nix (args // rec { - version = "3.0.0-alpha-3.1"; +stdenv.mkDerivation rec { + name = "protobuf-${version}"; + + version = "3.0.0-beta-2"; # make sure you test also -A pythonPackages.protobuf src = fetchFromGitHub { owner = "google"; repo = "protobuf"; rev = "v${version}"; - sha256 = "0vzw20ymjmjrrmg84f822qslclsb2q0wf0qdj2da198gmkkbrw45"; + sha256 = "0cbr1glgma5vakabsjwcs41pcnn8yphhn037l0zd121zb9gdaqc1"; + }; + + postPatch = '' + rm -rf gmock + cp -r ${gmock.source} gmock + chmod -R a+w gmock + '' + stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace src/google/protobuf/testing/googletest.cc \ + --replace 'tmpnam(b)' '"'$TMPDIR'/foo"' + ''; + + buildInputs = [ autoreconfHook zlib ]; + + enableParallelBuilding = true; + + doCheck = true; + + meta = { + description = "Google's data interchange format"; + longDescription = + ''Protocol Buffers are a way of encoding structured data in an efficient + yet extensible format. Google uses Protocol Buffers for almost all of + its internal RPC protocols and file formats. + ''; + license = stdenv.lib.licenses.bsd3; + platforms = stdenv.lib.platforms.unix; + homepage = https://developers.google.com/protocol-buffers/; }; -}) + + passthru.version = version; +} diff --git a/pkgs/development/libraries/protobuf/generic.nix b/pkgs/development/libraries/protobuf/generic.nix index fc41187a931..51136c31aa1 100644 --- a/pkgs/development/libraries/protobuf/generic.nix +++ b/pkgs/development/libraries/protobuf/generic.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { license = "mBSD"; - homepage = http://code.google.com/p/protobuf/; + homepage = https://developers.google.com/protocol-buffers/; }; passthru.version = version; diff --git a/pkgs/development/libraries/qt-5/5.4/qtbase/dlopen-resolv.patch b/pkgs/development/libraries/qt-5/5.4/qtbase/dlopen-resolv.patch index a79c806462f..20e56bf3149 100644 --- a/pkgs/development/libraries/qt-5/5.4/qtbase/dlopen-resolv.patch +++ b/pkgs/development/libraries/qt-5/5.4/qtbase/dlopen-resolv.patch @@ -7,7 +7,7 @@ Index: qt-everywhere-opensource-src-5.5.1/qtbase/src/network/kernel/qdnslookup_u #endif { - lib.setFileName(QLatin1String("resolv")); -+ lib.setFileName(QLatin1String("@glibc/lib/resolv")); ++ lib.setFileName(QLatin1String("@glibc@/lib/resolv")); if (!lib.load()) return; } diff --git a/pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-resolv.patch b/pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-resolv.patch index a79c806462f..20e56bf3149 100644 --- a/pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-resolv.patch +++ b/pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-resolv.patch @@ -7,7 +7,7 @@ Index: qt-everywhere-opensource-src-5.5.1/qtbase/src/network/kernel/qdnslookup_u #endif { - lib.setFileName(QLatin1String("resolv")); -+ lib.setFileName(QLatin1String("@glibc/lib/resolv")); ++ lib.setFileName(QLatin1String("@glibc@/lib/resolv")); if (!lib.load()) return; } diff --git a/pkgs/development/libraries/rote/default.nix b/pkgs/development/libraries/rote/default.nix index b87d4ed4ee4..524afd7cf4d 100644 --- a/pkgs/development/libraries/rote/default.nix +++ b/pkgs/development/libraries/rote/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl, ncurses }: -let version = "0.2.8"; in stdenv.mkDerivation rec { name = "rote-${version}"; + version = "0.2.8"; src = fetchurl { sha256 = "05v1lw99jv4cwxl7spyi7by61j2scpdsvx809x5cga7dm5dhlmky"; @@ -14,7 +14,6 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with stdenv.lib; { - inherit version; description = "Our Own Terminal Emulation Library"; longDescription = '' ROTE is a simple C library for VT102 terminal emulation. It allows the diff --git a/pkgs/development/libraries/snack/default.nix b/pkgs/development/libraries/snack/default.nix index ef2db5ae5a6..c2fdc8036c7 100644 --- a/pkgs/development/libraries/snack/default.nix +++ b/pkgs/development/libraries/snack/default.nix @@ -1,6 +1,6 @@ -# alsaLib vorbisTools python can be made optional +# alsaLib vorbis-tools python can be made optional -{ stdenv, fetchurl, python, tcl, tk, vorbisTools, pkgconfig, xlibsWrapper }: +{ stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkgconfig, xlibsWrapper }: stdenv.mkDerivation { name = "snack-2.2.10"; @@ -14,7 +14,7 @@ stdenv.mkDerivation { postUnpack = ''sourceRoot="$sourceRoot/unix"''; - buildInputs = [ python tcl tk vorbisTools pkgconfig xlibsWrapper ]; + buildInputs = [ python tcl tk vorbis-tools pkgconfig xlibsWrapper ]; postInstall = "aoeu"; diff --git a/pkgs/development/libraries/telepathy/qt/default.nix b/pkgs/development/libraries/telepathy/qt/default.nix index 49745e23fca..441d9385f73 100644 --- a/pkgs/development/libraries/telepathy/qt/default.nix +++ b/pkgs/development/libraries/telepathy/qt/default.nix @@ -35,7 +35,8 @@ stdenv.mkDerivation rec { cmakeFlags = "-DDESIRED_QT_VERSION=${builtins.substring 0 1 qtbase.version}"; - NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" ]; # remove after the next update + # should be removable after the next update + NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" "-Wno-error=unused-but-set-variable" ]; preBuild = '' NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`" diff --git a/pkgs/development/libraries/wcslib/default.nix b/pkgs/development/libraries/wcslib/default.nix new file mode 100644 index 00000000000..12741379aaa --- /dev/null +++ b/pkgs/development/libraries/wcslib/default.nix @@ -0,0 +1,27 @@ +{ fetchurl, stdenv, flex }: + +stdenv.mkDerivation rec { + version = "5.13"; + name = "wcslib-${version}"; + + buildInputs = [ flex ]; + + src = fetchurl { + url = "ftp://ftp.atnf.csiro.au/pub/software/wcslib/${name}.tar.bz2"; + sha256 ="1rxlp7p1b84r9fnk7m9p2ivg2cajfj88afyccrg64zlrqn5kx66n"; + }; + + enableParallelBuilding = true; + + meta = { + description = "World Coordinate System Library for Astronomy"; + homepage = http://www.atnf.csiro.au/people/mcalabre/WCS/; + + longDescription = ''Library for world coordinate systems for + spherical geometries and their conversion to image coordinate + systems. This is the standard library for this purpose in + astronomy.''; + + license = stdenv.lib.licenses.lgpl3Plus; + }; +} |