aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/SDL2/find-headers.patch34
-rw-r--r--pkgs/development/libraries/aws-c-common/default.nix11
-rw-r--r--pkgs/development/libraries/aws-checksums/default.nix10
-rw-r--r--pkgs/development/libraries/comedilib/default.nix4
-rw-r--r--pkgs/development/libraries/dav1d/default.nix4
-rw-r--r--pkgs/development/libraries/ffmpeg-full/default.nix5
-rw-r--r--pkgs/development/libraries/fribidi/default.nix3
-rw-r--r--pkgs/development/libraries/git2/default.nix8
-rw-r--r--pkgs/development/libraries/gstreamer/good/default.nix8
-rw-r--r--pkgs/development/libraries/gtk/3.x.nix4
-rw-r--r--pkgs/development/libraries/hidapi/default.nix4
-rw-r--r--pkgs/development/libraries/libgphoto2/default.nix27
-rw-r--r--pkgs/development/libraries/libimagequant/default.nix4
-rw-r--r--pkgs/development/libraries/libjpeg-turbo/default.nix4
-rw-r--r--pkgs/development/libraries/libmtp/default.nix38
-rw-r--r--pkgs/development/libraries/libseccomp/default.nix4
-rw-r--r--pkgs/development/libraries/libxml2/default.nix18
-rw-r--r--pkgs/development/libraries/marl/default.nix26
-rw-r--r--pkgs/development/libraries/mesa/default.nix4
-rw-r--r--pkgs/development/libraries/onnxruntime/default.nix78
-rw-r--r--pkgs/development/libraries/swiftshader/default.nix10
-rw-r--r--pkgs/development/libraries/tracker/default.nix4
-rw-r--r--pkgs/development/libraries/wayland/0001-add-placeholder-for-nm.patch25
-rw-r--r--pkgs/development/libraries/wayland/default.nix59
24 files changed, 245 insertions, 151 deletions
diff --git a/pkgs/development/libraries/SDL2/find-headers.patch b/pkgs/development/libraries/SDL2/find-headers.patch
index a6b10ddb7edf..69dde41c7e2f 100644
--- a/pkgs/development/libraries/SDL2/find-headers.patch
+++ b/pkgs/development/libraries/SDL2/find-headers.patch
@@ -1,7 +1,7 @@
-diff -ru3 SDL2-2.0.4/sdl2-config.cmake.in SDL2-2.0.4-new/sdl2-config.cmake.in
---- SDL2-2.0.4/sdl2-config.cmake.in 2016-01-02 22:56:31.000000000 +0300
-+++ SDL2-2.0.4-new/sdl2-config.cmake.in 2016-08-22 05:26:42.420397323 +0300
-@@ -6,5 +6,6 @@
+diff -ru3 SDL2-2.0.12/sdl2-config.cmake.in SDL2-2.0.12-new/sdl2-config.cmake.in
+--- SDL2-2.0.12/sdl2-config.cmake.in 2020-03-11 02:36:18.000000000 +0100
++++ SDL2-2.0.12-new/sdl2-config.cmake.in 2020-11-11 11:59:05.178703826 +0100
+@@ -6,7 +6,8 @@
set(SDL2_PREFIX "@prefix@")
set(SDL2_EXEC_PREFIX "@prefix@")
set(SDL2_LIBDIR "@libdir@")
@@ -9,9 +9,29 @@ diff -ru3 SDL2-2.0.4/sdl2-config.cmake.in SDL2-2.0.4-new/sdl2-config.cmake.in
+set(SDL2_INCLUDE_DIRS "@includedir@/SDL2" $ENV{SDL2_PATH})
+separate_arguments(SDL2_INCLUDE_DIRS)
set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} @SDL_RLD_FLAGS@ @SDL_LIBS@")
-diff -ru3 SDL2-2.0.4/sdl2-config.in SDL2-2.0.4-new/sdl2-config.in
---- SDL2-2.0.4/sdl2-config.in 2016-01-02 22:56:31.000000000 +0300
-+++ SDL2-2.0.4-new/sdl2-config.in 2016-08-22 05:32:02.256397839 +0300
+ string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)
+
+@@ -20,14 +21,14 @@
+
+ add_library(SDL2::SDL2 SHARED IMPORTED)
+ set_target_properties(SDL2::SDL2 PROPERTIES
+- INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
++ INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIRS}"
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
+ IMPORTED_LOCATION "@libdir@/libSDL2.so"
+ INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS}")
+
+ add_library(SDL2::SDL2-static STATIC IMPORTED)
+ set_target_properties(SDL2::SDL2-static PROPERTIES
+- INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
++ INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIRS}"
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
+ IMPORTED_LOCATION "@libdir@/libSDL2.a"
+ INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS_STATIC}")
+Només a SDL2-2.0.12-new/: sdl2-config.cmake.in.orig
+diff -ru3 SDL2-2.0.12/sdl2-config.in SDL2-2.0.12-new/sdl2-config.in
+--- SDL2-2.0.12/sdl2-config.in 2020-03-11 02:36:18.000000000 +0100
++++ SDL2-2.0.12-new/sdl2-config.in 2020-11-11 11:56:26.432955479 +0100
@@ -42,7 +42,11 @@
echo @SDL_VERSION@
;;
diff --git a/pkgs/development/libraries/aws-c-common/default.nix b/pkgs/development/libraries/aws-c-common/default.nix
index b028813558f5..6470566d5c71 100644
--- a/pkgs/development/libraries/aws-c-common/default.nix
+++ b/pkgs/development/libraries/aws-c-common/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake }:
+{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch }:
stdenv.mkDerivation rec {
pname = "aws-c-common";
@@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
+ # can be removed once https://github.com/awslabs/aws-c-common/pull/735 gets merged, and version bumped
+ patches = [
+ (fetchpatch {
+ name = "fix-re-export-of-target.patch";
+ url = "https://github.com/awslabs/aws-c-common/pull/735/commits/3fca5c629ce0c4d66f50f7152685f3fe73941cb4.patch";
+ sha256 = "056f9kyg1c4lwjq8n0r28w1n3zbwrwpi1wbqabk99gaayg46x35a";
+ })
+ ];
+
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
"-Wno-nullability-extension -Wno-typedef-redefinition";
diff --git a/pkgs/development/libraries/aws-checksums/default.nix b/pkgs/development/libraries/aws-checksums/default.nix
index d4ba15e52db4..ea3633d2e4d9 100644
--- a/pkgs/development/libraries/aws-checksums/default.nix
+++ b/pkgs/development/libraries/aws-checksums/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake }:
+{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch }:
stdenv.mkDerivation rec {
pname = "aws-checksums";
@@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
+ # can be removed once https://github.com/awslabs/aws-checksums/pull/40 gets merged, and version bumped
+ patches = [
+ (fetchpatch {
+ url = "https://github.com/awslabs/aws-checksums/pull/40/commits/fb5a57b3c072bd88e45de76fbb76bdc89c67b193.patch";
+ sha256 = "056f9kyg1c4lwjq8n0r28w1n3zbwrwpi1wbqabk99gaayg46x35a";
+ })
+ ];
+
cmakeFlags = [ "-DBUILD_SHARED_LIBS:BOOL=ON" ];
meta = with lib; {
diff --git a/pkgs/development/libraries/comedilib/default.nix b/pkgs/development/libraries/comedilib/default.nix
index f011c04d8856..98811b97c87e 100644
--- a/pkgs/development/libraries/comedilib/default.nix
+++ b/pkgs/development/libraries/comedilib/default.nix
@@ -13,13 +13,13 @@
stdenv.mkDerivation rec {
pname = "comedilib";
- version = "0.11.0";
+ version = "0.12.0";
src = fetchFromGitHub {
owner = "Linux-Comedi";
repo = "comedilib";
rev = "r${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}";
- sha256 = "159sv4jdgmcaqz76vazkyxxb85ni7pg14p1qv7y94hib3kspc195";
+ sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw";
};
nativeBuildInputs = [
diff --git a/pkgs/development/libraries/dav1d/default.nix b/pkgs/development/libraries/dav1d/default.nix
index 0889fdd0d8f4..a56184e9a179 100644
--- a/pkgs/development/libraries/dav1d/default.nix
+++ b/pkgs/development/libraries/dav1d/default.nix
@@ -9,14 +9,14 @@ assert useVulkan -> withExamples;
stdenv.mkDerivation rec {
pname = "dav1d";
- version = "0.7.1";
+ version = "0.8.0";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "videolan";
repo = pname;
rev = version;
- sha256 = "1yawrbaazj6a2rvvb58k6kh492fjxdwlm94bl6ipry0fqmz0rlnl";
+ sha256 = "0mjn87xjdqv0q1gj4s4f6fdmsj504mhk4qmqiyrhq2rs7yqj4csv";
};
nativeBuildInputs = [ meson ninja nasm pkgconfig ];
diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix
index df7043cd44ed..a2f5e366e008 100644
--- a/pkgs/development/libraries/ffmpeg-full/default.nix
+++ b/pkgs/development/libraries/ffmpeg-full/default.nix
@@ -164,9 +164,8 @@
* utvideo vo-aacenc vo-amrwbenc xvmc zvbi blackmagic-design-desktop-video
*
* Need fixes to support Darwin:
- * frei0r game-music-emu gsm libjack2 libmfx(intel-media-sdk) libssh
- * libvpx(stable 1.3.0) openal openjpeg pulseaudio rtmpdump samba vid-stab
- * wavpack x265 xavs
+ * gsm libjack2 libmodplug libmfx(intel-media-sdk) nvenc pulseaudio samba
+ * vid-stab
*
* Need fixes to support AArch64:
* libmfx(intel-media-sdk) nvenc
diff --git a/pkgs/development/libraries/fribidi/default.nix b/pkgs/development/libraries/fribidi/default.nix
index 0022cbde7c55..f10af240720d 100644
--- a/pkgs/development/libraries/fribidi/default.nix
+++ b/pkgs/development/libraries/fribidi/default.nix
@@ -1,4 +1,5 @@
{ stdenv
+, buildPackages
, fetchurl
, meson
, ninja
@@ -26,6 +27,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkgconfig ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
+ depsBuildBuild = [ buildPackages.stdenv.cc ];
+
doCheck = true;
checkInputs = [ python3 ];
diff --git a/pkgs/development/libraries/git2/default.nix b/pkgs/development/libraries/git2/default.nix
index 3f0279950338..96b67c7ccca8 100644
--- a/pkgs/development/libraries/git2/default.nix
+++ b/pkgs/development/libraries/git2/default.nix
@@ -1,18 +1,18 @@
-{ stdenv, fetchFromGitHub, cmake, pkgconfig, python3
+{ stdenv, fetchFromGitHub, cmake, pkg-config, python3
, zlib, libssh2, openssl, pcre, http-parser
, libiconv, Security
}:
stdenv.mkDerivation rec {
pname = "libgit2";
- version = "1.0.0";
+ version = "1.1.0";
# keep the version in sync with python3.pkgs.pygit2 and libgit2-glib
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
- sha256 = "06cwrw93ycpfb5kisnsa5nsy95pm11dbh0vvdjg1jn25h9q5d3vc";
+ sha256 = "1vj7q7b8j3smiyi1acbc5x86lqk00igdm2adjnqs9n011i13rykl";
};
cmakeFlags = [
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
"-DUSE_HTTP_PARSER=system"
];
- nativeBuildInputs = [ cmake python3 pkgconfig ];
+ nativeBuildInputs = [ cmake python3 pkg-config ];
buildInputs = [ zlib libssh2 openssl pcre http-parser ]
++ stdenv.lib.optional stdenv.isDarwin Security;
diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix
index bcae19217e02..99b00e6ca9d7 100644
--- a/pkgs/development/libraries/gstreamer/good/default.nix
+++ b/pkgs/development/libraries/gstreamer/good/default.nix
@@ -30,6 +30,7 @@
, mpg123
, twolame
, gtkSupport ? false, gtk3 ? null
+, raspiCameraSupport ? false, libraspberrypi ? null
, enableJack ? true, libjack2
, libXdamage
, libXext
@@ -43,6 +44,7 @@
}:
assert gtkSupport -> gtk3 != null;
+assert raspiCameraSupport -> ((libraspberrypi != null) && stdenv.isLinux && stdenv.isAarch64);
let
inherit (stdenv.lib) optionals;
@@ -95,6 +97,8 @@ stdenv.mkDerivation rec {
xorg.libXfixes
xorg.libXdamage
wavpack
+ ] ++ optionals raspiCameraSupport [
+ libraspberrypi
] ++ optionals gtkSupport [
# for gtksink
gtk3
@@ -128,8 +132,8 @@ stdenv.mkDerivation rec {
"-Dv4l2=disabled" # Linux-only
"-Dximagesrc=disabled" # Linux-only
"-Dpulse=disabled" # TODO check if we can keep this enabled
- ] ++ optionals (!(stdenv.isLinux && stdenv.hostPlatform.isAarch64)) [
- "-Drpicamsrc=disabled" # only works on Linux aarch64, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/blob/428c9b60532917c0ac49c9d48b15bdcd00a1370b/sys/rpicamsrc/meson.build#L10
+ ] ++ optionals (!raspiCameraSupport) [
+ "-Drpicamsrc=disabled"
];
postPatch = ''
diff --git a/pkgs/development/libraries/gtk/3.x.nix b/pkgs/development/libraries/gtk/3.x.nix
index 2cae9546b74c..aee846ccfcd0 100644
--- a/pkgs/development/libraries/gtk/3.x.nix
+++ b/pkgs/development/libraries/gtk/3.x.nix
@@ -30,6 +30,8 @@
, gnome3
, gsettings-desktop-schemas
, sassc
+, trackerSupport ? stdenv.isLinux
+, tracker
, x11Support ? stdenv.isLinux
, waylandSupport ? stdenv.isLinux
, mesa
@@ -91,6 +93,7 @@ stdenv.mkDerivation rec {
mesonFlags = [
"-Dgtk_doc=${boolToString withGtkDoc}"
"-Dtests=false"
+ "-Dtracker3=${boolToString trackerSupport}"
];
# These are the defines that'd you'd get with --enable-debug=minimum (default).
@@ -137,6 +140,7 @@ stdenv.mkDerivation rec {
isocodes
]
++ optional stdenv.isDarwin AppKit
+ ++ optional trackerSupport tracker
;
propagatedBuildInputs = with xorg; [
diff --git a/pkgs/development/libraries/hidapi/default.nix b/pkgs/development/libraries/hidapi/default.nix
index df8212cd5a65..c42a35282233 100644
--- a/pkgs/development/libraries/hidapi/default.nix
+++ b/pkgs/development/libraries/hidapi/default.nix
@@ -3,13 +3,13 @@
stdenv.mkDerivation rec {
pname = "hidapi";
- version = "0.10.0";
+ version = "0.10.1";
src = fetchFromGitHub {
owner = "libusb";
repo = "hidapi";
rev = "${pname}-${version}";
- sha256 = "1n3xn1zvxgyzb84cjpw3i5alw0gkbrps11r4ijxzyqxqym0khagr";
+ sha256 = "1nr4z4b10vpbh3ss525r7spz4i43zim2ba5qzfl15dgdxshxxivb";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
diff --git a/pkgs/development/libraries/libgphoto2/default.nix b/pkgs/development/libraries/libgphoto2/default.nix
index 95bb24ecb583..93c98bb1f121 100644
--- a/pkgs/development/libraries/libgphoto2/default.nix
+++ b/pkgs/development/libraries/libgphoto2/default.nix
@@ -1,19 +1,34 @@
-{ stdenv, fetchFromGitHub, pkgconfig, libusb1, libtool, libexif, libjpeg, gettext, autoreconfHook }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
+, libusb1
+, libtool
+, libexif
+, libjpeg
+}:
stdenv.mkDerivation rec {
- name = "libgphoto2-${meta.version}";
+ pname = "libgphoto2";
+ version = "2.5.23";
src = fetchFromGitHub {
owner = "gphoto";
repo = "libgphoto2";
- rev = meta.tag;
+ rev = "libgphoto2-${builtins.replaceStrings [ "." ] [ "_" ] version}-release";
sha256 = "1sc2ycx11khf0qzp1cqxxx1qymv6bjfbkx3vvbwz6wnbyvsigxz2";
};
patches = [];
- nativeBuildInputs = [ pkgconfig gettext autoreconfHook ];
- buildInputs = [ libtool libjpeg libusb1 ];
+ nativeBuildInputs = [
+ autoreconfHook
+ pkgconfig
+ gettext
+ libtool
+ ];
+
+ buildInputs = [
+ libjpeg
+ libusb1
+ ];
# These are mentioned in the Requires line of libgphoto's pkg-config file.
propagatedBuildInputs = [ libexif ];
@@ -33,8 +48,6 @@ stdenv.mkDerivation rec {
MTP, and other vendor specific protocols for controlling and transferring data
from digital cameras.
'';
- version = "2.5.23";
- tag = "libgphoto2-2_5_23-release";
# XXX: the homepage claims LGPL, but several src files are lgpl21Plus
license = stdenv.lib.licenses.lgpl21Plus;
platforms = with stdenv.lib.platforms; unix;
diff --git a/pkgs/development/libraries/libimagequant/default.nix b/pkgs/development/libraries/libimagequant/default.nix
index 2bfc9ec96cac..2bca09be45f4 100644
--- a/pkgs/development/libraries/libimagequant/default.nix
+++ b/pkgs/development/libraries/libimagequant/default.nix
@@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "libimagequant";
- version = "2.13.0";
+ version = "2.13.1";
src = fetchFromGitHub {
owner = "ImageOptim";
repo = pname;
rev = version;
- sha256 = "12alfvq761nhdl927aj93yv3r6rzxlf7csdr28xgga7cz53fmrrp";
+ sha256 = "1543h1i59k2hbj2g8shcl8fvhz2silipacynwjgw412r38hkr33j";
};
preConfigure = ''
diff --git a/pkgs/development/libraries/libjpeg-turbo/default.nix b/pkgs/development/libraries/libjpeg-turbo/default.nix
index 2a25a565a8fc..6aa4e049e4c3 100644
--- a/pkgs/development/libraries/libjpeg-turbo/default.nix
+++ b/pkgs/development/libraries/libjpeg-turbo/default.nix
@@ -3,13 +3,13 @@
stdenv.mkDerivation rec {
pname = "libjpeg-turbo";
- version = "2.0.5";
+ version = "2.0.6";
src = fetchFromGitHub {
owner = "libjpeg-turbo";
repo = "libjpeg-turbo";
rev = version;
- sha256 = "0p32yivybxdicm01qa9h1vj91apygzxpvnklrjmbx8z9z2l3qxc9";
+ sha256 = "0njdxfmyk8smj8bbd6fs3lxjaq3lybivwgg16gpnbiyl984dpi9b";
};
patches =
diff --git a/pkgs/development/libraries/libmtp/default.nix b/pkgs/development/libraries/libmtp/default.nix
index dc5410d65fd8..e9cfd0f9856a 100644
--- a/pkgs/development/libraries/libmtp/default.nix
+++ b/pkgs/development/libraries/libmtp/default.nix
@@ -1,18 +1,40 @@
-{ stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
+{ stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
+, libusb1
+, libiconv
+}:
stdenv.mkDerivation rec {
- name = "libmtp-1.1.18";
+ pname = "libmtp";
+ version = "1.1.18";
- src = fetchurl {
- url = "mirror://sourceforge/libmtp/${name}.tar.gz";
- sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
+ src = fetchFromGitHub {
+ owner = "libmtp";
+ repo = "libmtp";
+ rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
+ sha256 = "0rya6dsb67a7ny2i1jzdicnday42qb8njqw6r902k712k5p7d1r9";
};
outputs = [ "bin" "dev" "out" ];
- buildInputs = [ libiconv ];
- propagatedBuildInputs = [ libusb1 ];
- nativeBuildInputs = [ pkgconfig ];
+ nativeBuildInputs = [
+ autoconf
+ automake
+ gettext
+ libtool
+ pkgconfig
+ ];
+
+ buildInputs = [
+ libiconv
+ ];
+
+ propagatedBuildInputs = [
+ libusb1
+ ];
+
+ preConfigure = ''
+ ./autogen.sh
+ '';
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
diff --git a/pkgs/development/libraries/libseccomp/default.nix b/pkgs/development/libraries/libseccomp/default.nix
index 84f89dec29b6..ab1df8d2bc12 100644
--- a/pkgs/development/libraries/libseccomp/default.nix
+++ b/pkgs/development/libraries/libseccomp/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "libseccomp";
- version = "2.5.0";
+ version = "2.5.1";
src = fetchurl {
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
- sha256 = "1wql62cg8f95cwpy057cl764nni9g4sdn5lqj68x22kjs8w71yhz";
+ sha256 = "0m8dlg1v7kflcxvajs4p76p275qwsm2abbf5mfapkakp7hw7wc7f";
};
outputs = [ "out" "lib" "dev" "man" "pythonsrc" ];
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix
index 5e290b25832d..594928876888 100644
--- a/pkgs/development/libraries/libxml2/default.nix
+++ b/pkgs/development/libraries/libxml2/default.nix
@@ -28,14 +28,26 @@ stdenv.mkDerivation rec {
# https://github.com/NixOS/nixpkgs/pull/72342
./utf8-xmlErrorFuncHandler.patch
(fetchpatch {
+ name = "CVE-2019-20388.patch";
+ url = "https://gitlab.gnome.org/GNOME/libxml2/commit/6088a74bcf7d0c42e24cff4594d804e1d3c9fbca.patch";
+ sha256 = "070s7al2r2k92320h9cdfc2097jy4kk04d0disc98ddc165r80jl";
+ })
+ (fetchpatch {
name = "CVE-2020-7595.patch";
url = "https://gitlab.gnome.org/GNOME/libxml2/commit/0e1a49c8907645d2e155f0d89d4d9895ac5112b5.patch";
sha256 = "0klvaxkzakkpyq0m44l9xrpn5kwaii194sqsivfm6zhnb9hhl15l";
})
(fetchpatch {
- name = "CVE-2019-20388.patch";
- url = "https://gitlab.gnome.org/GNOME/libxml2/commit/6088a74bcf7d0c42e24cff4594d804e1d3c9fbca.patch";
- sha256 = "070s7al2r2k92320h9cdfc2097jy4kk04d0disc98ddc165r80jl";
+ name = "CVE-2020-24977.patch";
+ url = "https://gitlab.gnome.org/GNOME/libxml2/commit/50f06b3efb638efb0abd95dc62dca05ae67882c2.patch";
+ sha256 = "093f1ic5qfiq8nk9mc6b8p1qcs8m9hir3ardr6r5il4zi2dnjrj4";
+ })
+ # Fix compatibility with Python 3.9.
+ # https://gitlab.gnome.org/GNOME/libxml2/-/issues/149
+ (fetchpatch {
+ name = "python39.patch";
+ url = "https://gitlab.gnome.org/nwellnhof/libxml2/-/commit/e4fb36841800038c289997432ca547c9bfef9db1.patch";
+ sha256 = "0h3vpy9fg3339b14qa64640ypp65z3hrrrmpjl8qm72srkp24ci5";
})
];
diff --git a/pkgs/development/libraries/marl/default.nix b/pkgs/development/libraries/marl/default.nix
new file mode 100644
index 000000000000..2bf23962d53e
--- /dev/null
+++ b/pkgs/development/libraries/marl/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, cmake, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+ pname = "marl";
+ version = "1.0.0"; # Based on marl's CHANGES.md
+
+ src = fetchFromGitHub {
+ owner = "google";
+ repo = pname;
+ sha256 = "0pnbarbyv82h05ckays2m3vgxzdhpcpg59bnzsddlb5v7rqhw51w";
+ rev = "40209e952f5c1f3bc883d2b7f53b274bd454ca53";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ # Turn on the flag to install after building the library.
+ cmakeFlags = ["-DMARL_INSTALL=ON"];
+
+ meta = with stdenv.lib; {
+ homepage = "https://github.com/google/marl";
+ description = "A hybrid thread / fiber task scheduler written in C++ 11";
+ platforms = platforms.all;
+ license = licenses.asl20;
+ maintainers = with maintainers; [ breakds ];
+ };
+}
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix
index 8e8a625b50f8..891e11dbadf9 100644
--- a/pkgs/development/libraries/mesa/default.nix
+++ b/pkgs/development/libraries/mesa/default.nix
@@ -31,7 +31,7 @@ with stdenv.lib;
let
# Release calendar: https://www.mesa3d.org/release-calendar.html
# Release frequency: https://www.mesa3d.org/releasing.html#schedule
- version = "20.2.2";
+ version = "20.2.3";
branch = versions.major version;
in
@@ -46,7 +46,7 @@ stdenv.mkDerivation {
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
];
- sha256 = "0qdqi767vshclnfg9drlsmp2pa17hi7y0172s064jwfgj08fp4qz";
+ sha256 = "0axqrqg1fas91fx30qjwhcp4yasdvk919hjds4lga7ak247286xf";
};
prePatch = "patchShebangs .";
diff --git a/pkgs/development/libraries/onnxruntime/default.nix b/pkgs/development/libraries/onnxruntime/default.nix
deleted file mode 100644
index 06d0d194cd59..000000000000
--- a/pkgs/development/libraries/onnxruntime/default.nix
+++ /dev/null
@@ -1,78 +0,0 @@
-{ stdenv, fetchFromGitHub, glibcLocales
-, cmake, python3, libpng, zlib
-}:
-
-stdenv.mkDerivation rec {
- pname = "onnxruntime";
- version = "1.3.1";
-
- src = fetchFromGitHub {
- owner = "microsoft";
- repo = "onnxruntime";
- rev = "v${version}";
- sha256 = "0rbk1jbfc447x2wybz2hsba6w1ij0fq21996l52cqv39898lvy9d";
- # TODO: use nix-versions of grpc, onnx, eigen, googletest, etc.
- # submodules increase src size and compile times significantly
- # not currently feasible due to how integrated cmake build is with git
- fetchSubmodules = true;
- # Remove unicode file names which leads to different checksums on HFS+
- # vs. other filesystems because of unicode normalisation.
- postFetch = ''
- rm -rf $out/winml/test/collateral/models/UnicodePath/
- '';
- };
-
- # TODO: build server, and move .so's to lib output
- outputs = [ "out" "dev" ];
-
- nativeBuildInputs = [
- cmake
- python3 # for shared-lib or server
- ];
-
- buildInputs = [
- # technically optional, but highly recommended
- libpng
- zlib
- ];
-
- cmakeDir = "../cmake";
-
- cmakeFlags = [
- "-Donnxruntime_USE_OPENMP=ON"
- "-Donnxruntime_BUILD_SHARED_LIB=ON"
- "-Donnxruntime_ENABLE_LTO=ON"
- ];
-
- # ContribOpTest.StringNormalizerTest sets locale to en_US.UTF-8"
- preCheck = stdenv.lib.optionalString stdenv.isLinux ''
- export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
- '';
- doCheck = true;
-
- postInstall = ''
- rm -r $out/bin # ctest runner
- '';
-
- enableParallelBuilding = true;
-
- meta = with stdenv.lib; {
- description = "Cross-platform, high performance scoring engine for ML models";
- longDescription = ''
- ONNX Runtime is a performance-focused complete scoring engine
- for Open Neural Network Exchange (ONNX) models, with an open
- extensible architecture to continually address the latest developments
- in AI and Deep Learning. ONNX Runtime stays up to date with the ONNX
- standard with complete implementation of all ONNX operators, and
- supports all ONNX releases (1.2+) with both future and backwards
- compatibility.
- '';
- homepage = "https://github.com/microsoft/onnxruntime";
- changelog = "https://github.com/microsoft/onnxruntime/releases";
- # https://github.com/microsoft/onnxruntime/blob/master/BUILD.md#architectures
- platforms = platforms.unix;
- license = licenses.mit;
- maintainers = with maintainers; [ jonringer ];
- };
-
-}
diff --git a/pkgs/development/libraries/swiftshader/default.nix b/pkgs/development/libraries/swiftshader/default.nix
index 3965f46bd8d8..3631b8b4fe7c 100644
--- a/pkgs/development/libraries/swiftshader/default.nix
+++ b/pkgs/development/libraries/swiftshader/default.nix
@@ -1,17 +1,17 @@
-{ stdenv, fetchgit, python3, cmake, jq, libX11, libXext }:
+{ stdenv, fetchgit, python3, cmake, jq, libX11, libXext, zlib }:
stdenv.mkDerivation rec {
pname = "swiftshader";
- version = "2020-06-17";
+ version = "2020-11-06";
src = fetchgit {
url = "https://swiftshader.googlesource.com/SwiftShader";
- rev = "763957e6b4fc1aa360ab19c4109b8b26686783e8";
- sha256 = "0sdh48swx0qyq2nfkv1nggs14am0qc7z239qrxb69p2ddqm76g1s";
+ rev = "4ed9d3498dcffa987acba1a8007ff8dec336f263";
+ sha256 = "1gz2zflfacxf34s78djddf93brn9kyxj4byc4p2ip1pin43lh2lg";
};
nativeBuildInputs = [ cmake python3 jq ];
- buildInputs = [ libX11 libXext ];
+ buildInputs = [ libX11 libXext zlib ];
# Make sure we include the drivers and icd files in the output as the cmake
# generated install command only puts in the spirv-tools stuff.
diff --git a/pkgs/development/libraries/tracker/default.nix b/pkgs/development/libraries/tracker/default.nix
index 40ab73405ae4..ee50d6547957 100644
--- a/pkgs/development/libraries/tracker/default.nix
+++ b/pkgs/development/libraries/tracker/default.nix
@@ -12,7 +12,7 @@
, docbook_xml_dtd_45
, libxml2
, glib
-, wrapGAppsHook
+, wrapGAppsNoGuiHook
, vala
, sqlite
, libxslt
@@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
asciidoc
gettext
libxslt
- wrapGAppsHook
+ wrapGAppsNoGuiHook
gobject-introspection
gtk-doc
docbook-xsl-nons
diff --git a/pkgs/development/libraries/wayland/0001-add-placeholder-for-nm.patch b/pkgs/development/libraries/wayland/0001-add-placeholder-for-nm.patch
new file mode 100644
index 000000000000..f6745e6f9433
--- /dev/null
+++ b/pkgs/development/libraries/wayland/0001-add-placeholder-for-nm.patch
@@ -0,0 +1,25 @@
+From 378623b0e39b12bb04d3a3a1e08e64b31bd7d99d Mon Sep 17 00:00:00 2001
+From: Florian Klink <flokli@flokli.de>
+Date: Fri, 27 Nov 2020 10:22:20 +0100
+Subject: [PATCH] add placeholder for @nm@
+
+---
+ egl/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/egl/meson.build b/egl/meson.build
+index dee9b1d..e477546 100644
+--- a/egl/meson.build
++++ b/egl/meson.build
+@@ -11,7 +11,7 @@ wayland_egl = library(
+
+ executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
+
+-nm_path = find_program('nm').path()
++nm_path = find_program('@nm@').path()
+
+ test(
+ 'wayland-egl symbols check',
+--
+2.29.2
+
diff --git a/pkgs/development/libraries/wayland/default.nix b/pkgs/development/libraries/wayland/default.nix
index cd84495d870a..2b18bc31a452 100644
--- a/pkgs/development/libraries/wayland/default.nix
+++ b/pkgs/development/libraries/wayland/default.nix
@@ -1,17 +1,32 @@
-{ lib, stdenv, fetchurl, fetchpatch, meson, pkgconfig, ninja
-, libffi, libxml2, wayland
+{ lib
+, stdenv
+, fetchurl
+, fetchpatch
+, meson
+, pkgconfig
+, substituteAll
+, ninja
+, libffi
+, libxml2
+, wayland
, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
, withDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform
-, graphviz-nox, doxygen, libxslt, xmlto, python3
-, docbook_xsl, docbook_xml_dtd_45, docbook_xml_dtd_42
+, graphviz-nox
+, doxygen
+, libxslt
+, xmlto
+, python3
+, docbook_xsl
+, docbook_xml_dtd_45
+, docbook_xml_dtd_42
}:
# Require the optional to be enabled until upstream fixes or removes the configure flag
assert expat != null;
-
let
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
-in stdenv.mkDerivation rec {
+in
+stdenv.mkDerivation rec {
pname = "wayland";
version = "1.18.0";
@@ -26,6 +41,10 @@ in stdenv.mkDerivation rec {
url = "https://gitlab.freedesktop.org/wayland/wayland/-/commit/e53e0edf0f892670f3e8c5dd527b3bb22335d32d.patch";
sha256 = "15sbhi86m9k72lsj56p7zr20ph2b0y4svl639snsbafn2ir1zdb2";
})
+ (substituteAll {
+ src = ./0001-add-placeholder-for-nm.patch;
+ nm = "${stdenv.cc.targetPrefix}nm";
+ })
];
outputs = [ "out" ] ++ lib.optionals withDocumentation [ "doc" "man" ];
@@ -35,9 +54,6 @@ in stdenv.mkDerivation rec {
postPatch = lib.optionalString withDocumentation ''
patchShebangs doc/doxygen/gen-doxygen.py
- substituteInPlace egl/meson.build --replace \
- "find_program('nm').path()" \
- "find_program('${stdenv.cc.targetPrefix}nm').path()"
'';
depsBuildBuild = [
@@ -45,17 +61,28 @@ in stdenv.mkDerivation rec {
];
nativeBuildInputs = [
- meson pkgconfig ninja
+ meson
+ pkgconfig
+ ninja
] ++ lib.optionals isCross [
wayland # For wayland-scanner during the build
] ++ lib.optionals withDocumentation [
(graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
- doxygen libxslt xmlto python3 docbook_xml_dtd_45
+ doxygen
+ libxslt
+ xmlto
+ python3
+ docbook_xml_dtd_45
];
- buildInputs = [ libffi expat libxml2
+ buildInputs = [
+ libffi
+ expat
+ libxml2
] ++ lib.optionals withDocumentation [
- docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42
+ docbook_xsl
+ docbook_xml_dtd_45
+ docbook_xml_dtd_42
];
meta = {
@@ -68,9 +95,9 @@ in stdenv.mkDerivation rec {
and other interactions that must go through the compositor (but not
rendering).
'';
- homepage = "https://wayland.freedesktop.org/";
- license = lib.licenses.mit; # Expat version
- platforms = lib.platforms.linux;
+ homepage = "https://wayland.freedesktop.org/";
+ license = lib.licenses.mit; # Expat version
+ platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ primeos codyopel ];
};