git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'staging-next'

This iteration was long, about five weeks (2fcb11a2), I think. Darwin: it's missing a few thousand binaries and there's a make-netbsd regression, but I suppose these aren't merge blockers.

commit526c4292ae62e63b5711f8d112290fcd2613d8b3 authorVladimír Čunát <v@cunat.cz> dateSat 6 Apr 2019, 13:20 (8 years ago) parent6fe989e6b9afd8
48 files changed+1129−770
lib/systems/default.nix+1 lib/systems/doubles.nix+1−1 lib/systems/examples.nix+7 pkgs/applications/kde/minuet.nix+3−3 pkgs/applications/networking/browsers/firefox/packages.nix+14 pkgs/applications/networking/mailreaders/thunderbird/default.nix+9−1 pkgs/applications/networking/weather/meteo/default.nix+2−3 pkgs/build-support/bintools-wrapper/default.nix+2−1 pkgs/build-support/cc-wrapper/default.nix+4 pkgs/data/misc/tzdata/default.nix+3−3 pkgs/desktops/plasma-5/breeze-gtk.nix+2−2 pkgs/desktops/plasma-5/fetch.sh+1−1 pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch+27−114 pkgs/desktops/plasma-5/srcs.nix+180−180 pkgs/development/compilers/gcc/7/default.nix+4 pkgs/development/compilers/gcc/libstdc++-netbsd-ctypes.patch+141 pkgs/development/compilers/llvm/6/llvm.nix−3 pkgs/development/compilers/rust/bootstrap.nix+8−8 pkgs/development/compilers/rust/default.nix+3−3 pkgs/development/compilers/rust/patches/net-tcp-disable-tests.patch+12−20 pkgs/development/libraries/SDL/default.nix+7−9 pkgs/development/libraries/SDL2/default.nix+11−10 pkgs/development/libraries/cairo/default.nix+3 pkgs/development/libraries/glib/default.nix+2−22 pkgs/development/libraries/gnutls/3.6.nix+2−2 pkgs/development/libraries/gtk+/3.x.nix+7 pkgs/development/libraries/libarchive/default.nix+15 pkgs/development/libraries/libglvnd/default.nix+5−1 pkgs/development/libraries/libvdpau/default.nix+3−3 pkgs/development/libraries/mesa-glu/default.nix+1 pkgs/development/libraries/openssl/default.nix+2−2 pkgs/development/libraries/pixman/default.nix+2−2 pkgs/development/libraries/qt-5/modules/qtbase.nix−4 pkgs/development/libraries/sqlite/analyzer.nix+3−3 pkgs/development/libraries/sqlite/default.nix+3−3 pkgs/development/python-modules/numpy/default.nix+2−2 pkgs/development/tools/build-managers/waf/default.nix+2−2 pkgs/os-specific/bsd/netbsd/builder.sh+122 pkgs/os-specific/bsd/netbsd/default.nix+420−310 pkgs/os-specific/linux/apparmor/default.nix+2−2 pkgs/servers/x11/xorg/default.nix+50−24 pkgs/servers/x11/xorg/overrides.nix+8−5 pkgs/servers/x11/xorg/tarballs.list+10−8 pkgs/tools/filesystems/securefs/default.nix+2−2 pkgs/tools/misc/file/default.nix+2−2 pkgs/tools/networking/network-manager/default.nix+2−2 pkgs/tools/security/notary/default.nix+1−1 pkgs/top-level/all-packages.nix+16−6
lib/systems/default.nix+1
@@ -36,6 +36,7 @@ rec {
3636 else if final.isLinux /* default */ then "glibc"
3737 else if final.isMsp430 then "newlib"
3838 else if final.isAvr then "avrlibc"
39+ else if final.isNetBSD then "nblibc"
3940 # TODO(@Ericson2314) think more about other operating systems
4041 else "native/impure";
4142 extensions = {
lib/systems/doubles.nix+1−1
@@ -47,5 +47,5 @@ in rec {
4747 unix = filterDoubles predicates.isUnix;
4848 windows = filterDoubles predicates.isWindows;
4949
50− mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "aarch64-linux" "powerpc64le-linux"];
50+ mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64le-linux"];
5151}
lib/systems/examples.nix+7
@@ -217,4 +217,11 @@ rec {
217217 libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
218218 platform = {};
219219 };
220+
221+ # BSDs
222+
223+ amd64-netbsd = {
224+ config = "x86_64-unknown-netbsd";
225+ libc = "nblibc";
226+ };
220227}
pkgs/applications/kde/minuet.nix+3−3
@@ -2,17 +2,17 @@
22, lib, extra-cmake-modules, gettext, python
33, drumstick, fluidsynth
44, kcoreaddons, kcrash, kdoctools
5−, qtquickcontrols2, qtsvg, qttools
5+, qtquickcontrols2, qtsvg, qttools, qtdeclarative
66}:
77
88mkDerivation {
99 name = "minuet";
1010 meta = with lib; {
1111 license = with licenses; [ lgpl21 gpl3 ];
12− maintainers = with maintainers; [ peterhoeg ];
12+ maintainers = with maintainers; [ peterhoeg HaoZeke ];
1313 };
1414
15− nativeBuildInputs = [ extra-cmake-modules gettext kdoctools python ];
15+ nativeBuildInputs = [ extra-cmake-modules gettext kdoctools python qtdeclarative ];
1616
1717 propagatedBuildInputs = [
1818 drumstick fluidsynth
pkgs/applications/networking/browsers/firefox/packages.nix+14
@@ -4,6 +4,13 @@ let
44
55 common = opts: callPackage (import ./common.nix opts) {};
66
7+ # Needed on older branches since rustc: 1.32.0 -> 1.33.0
8+ missing-documentation-patch = fetchurl {
9+ name = "missing-documentation.patch";
10+ url = "https://aur.archlinux.org/cgit/aur.git/plain/deny_missing_docs.patch"
11+ + "?h=firefox-esr&id=03bdd01f9cf";
12+ sha256 = "1i33n3fgwc8d0v7j4qn7lbdax0an6swar12gay3q2nwrhg3ic4fb";
13+ };
714in
815
916rec {
@@ -74,6 +81,8 @@ rec {
7481 # this one is actually an omnipresent bug
7582 # https://bugzilla.mozilla.org/show_bug.cgi?id=1444519
7683 ./fix-pa-context-connect-retval.patch
84+
85+ missing-documentation-patch
7786 ];
7887
7988 meta = firefox.meta // {
@@ -139,6 +148,7 @@ in rec {
139148
140149 patches = [
141150 ./no-buildconfig.patch
151+ missing-documentation-patch
142152 ];
143153 };
144154
@@ -243,6 +253,10 @@ in rec {
243253 rev = "dda14213c550afc522ef0bb0bb1643289c298736";
244254 sha256 = "0lj79nczcix9mx6d0isbizg0f8apf6vgkp7r0q7id92691frj7fz";
245255 };
256+
257+ patches = [
258+ missing-documentation-patch
259+ ];
246260 };
247261
248262 tor-browser = tor-browser-8-0;
pkgs/applications/networking/mailreaders/thunderbird/default.nix+9−1
@@ -50,6 +50,14 @@ in stdenv.mkDerivation rec {
5050 patches = [
5151 # Remove buildconfig.html to prevent a dependency on clang etc.
5252 ./no-buildconfig.patch
53+
54+ # Needed on older branches since rustc: 1.32.0 -> 1.33.0
55+ (fetchurl {
56+ name = "missing-documentation.patch";
57+ url = "https://aur.archlinux.org/cgit/aur.git/plain/deny_missing_docs.patch"
58+ + "?h=firefox-esr&id=03bdd01f9cf";
59+ sha256 = "1i33n3fgwc8d0v7j4qn7lbdax0an6swar12gay3q2nwrhg3ic4fb";
60+ })
5361 ];
5462
5563 configureFlags =
@@ -66,7 +74,7 @@ in stdenv.mkDerivation rec {
6674 "--with-system-libevent"
6775 "--with-system-png" # needs APNG support
6876 "--with-system-icu"
69− "--enable-rust-simd"
77+ #"--enable-rust-simd" # not supported since rustc 1.32.0 -> 1.33.0; TODO: probably OK since 68.0.0
7078 "--enable-system-ffi"
7179 "--enable-system-hunspell"
7280 "--enable-system-pixman"
pkgs/applications/networking/weather/meteo/default.nix+2−3
@@ -1,6 +1,7 @@
11{ stdenv, fetchFromGitLab, vala, python3, pkgconfig, meson, ninja, gtk3
22, json-glib, libsoup, clutter, clutter-gtk, libchamplain, webkitgtk, geocode-glib
3−, libappindicator, desktop-file-utils, appstream, gobject-introspection, wrapGAppsHook, hicolor-icon-theme }:
3+, libappindicator, desktop-file-utils, appstream, gobject-introspection, wrapGAppsHook
4+, hicolor-icon-theme }:
45
56stdenv.mkDerivation rec {
67 pname = "meteo";
@@ -25,8 +26,6 @@ stdenv.mkDerivation rec {
2526 ];
2627
2728 buildInputs = [
28− clutter
29− clutter-gtk
3029 geocode-glib
3130 gtk3
3231 hicolor-icon-theme
pkgs/build-support/bintools-wrapper/default.nix+2−1
@@ -53,6 +53,7 @@ let
5353 /**/ if libc == null then null
5454 else if targetPlatform.libc == "musl" then "${libc_lib}/lib/ld-musl-*"
5555 else if targetPlatform.libc == "bionic" then "/system/bin/linker"
56+ else if targetPlatform.libc == "nblibc" then "${libc_lib}/libexec/ld.elf_so"
5657 else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
5758 else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
5859 # ARM with a wildcard, which can be "" or "-armhf".
@@ -189,7 +190,7 @@ stdenv.mkDerivation {
189190 else if targetPlatform.isMsp430 then "msp430"
190191 else if targetPlatform.isAvr then "avr"
191192 else if targetPlatform.isAlpha then "alpha"
192− else throw "unknown emulation for platform: " + targetPlatform.config;
193+ else throw "unknown emulation for platform: ${targetPlatform.config}";
193194 in targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
194195
195196 strictDeps = true;
pkgs/build-support/cc-wrapper/default.nix+4
@@ -291,6 +291,10 @@ stdenv.mkDerivation {
291291 hardening_unsupported_flags+=" stackprotector pic"
292292 ''
293293
294+ + optionalString targetPlatform.isNetBSD ''
295+ hardening_unsupported_flags+=" stackprotector fortify"
296+ ''
297+
294298 + optionalString (targetPlatform.libc == "newlib") ''
295299 hardening_unsupported_flags+=" stackprotector fortify pie pic"
296300 ''
pkgs/data/misc/tzdata/default.nix+3−3
@@ -2,16 +2,16 @@
22
33stdenv.mkDerivation rec {
44 name = "tzdata-${version}";
5− version = "2018g";
5+ version = "2019a";
66
77 srcs =
88 [ (fetchurl {
99 url = "https://data.iana.org/time-zones/releases/tzdata${version}.tar.gz";
10− sha256 = "05kayi3w9pvhj6ljx1hvwd0r8mxfzn436fjmwhx53xkj919xxpq2";
10+ sha256 = "0wlpqm4asvi0waaz24xj20iq40gqfypmb4nldjhkfgm09bgnsdlh";
1111 })
1212 (fetchurl {
1313 url = "https://data.iana.org/time-zones/releases/tzcode${version}.tar.gz";
14− sha256 = "09y44fzcdq3c06saa8iqqa0a59cyw6ni3p31ps0j1w3hcpxz8lxa";
14+ sha256 = "1x9z8fpgnhzlsnps0hamb54ymaskjab7ys9m4i4gpk9hpiig2fc7";
1515 })
1616 ];
1717
pkgs/desktops/plasma-5/breeze-gtk.nix+2−2
@@ -1,10 +1,10 @@
1−{ mkDerivation, lib, extra-cmake-modules, gtk2, qtbase, }:
1+{ mkDerivation, lib, extra-cmake-modules, gtk2, qtbase, sassc, python3, breeze-qt5 }:
22
33let inherit (lib) getLib; in
44
55mkDerivation {
66 name = "breeze-gtk";
7− nativeBuildInputs = [ extra-cmake-modules ];
7+ nativeBuildInputs = [ extra-cmake-modules sassc python3 python3.pkgs.pycairo breeze-qt5 ];
88 buildInputs = [ qtbase ];
99 postPatch = ''
1010 sed -i cmake/FindGTKEngine.cmake \
pkgs/desktops/plasma-5/fetch.sh+1−1
@@ -1 +1 @@
1−WGET_ARGS=( https://download.kde.org/stable/plasma/5.14.5/ )
1+WGET_ARGS=( https://download.kde.org/stable/plasma/5.15.2/ -A '*.tar.xz' )
pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch+27−114
@@ -9,12 +9,12 @@ index 69d30705..52e91028 100644
99-background=${CMAKE_INSTALL_PREFIX}/${WALLPAPER_INSTALL_DIR}/Next/contents/images/3200x2000.png
1010+background=${NIXPKGS_WALLPAPER_INSTALL_DIR}/Next/contents/images/3200x2000.png
1111diff --git a/startkde/CMakeLists.txt b/startkde/CMakeLists.txt
12−index cb75aeca..247db953 100644
12+index 6a1a2121..f03fd349 100644
1313--- a/startkde/CMakeLists.txt
1414+++ b/startkde/CMakeLists.txt
15−@@ -3,11 +3,6 @@ add_subdirectory(kstartupconfig)
16− add_subdirectory(ksyncdbusenv)
15+@@ -4,11 +4,6 @@ add_subdirectory(ksyncdbusenv)
1716 add_subdirectory(waitforname)
17+ add_subdirectory(kcheckrunning)
1818
1919-#FIXME: reconsider, looks fishy
2020-if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
@@ -36,7 +36,7 @@ index 493218ea..d507aa55 100644
3636+ return system( NIXPKGS_KDOSTARTUPCONFIG5 );
3737 }
3838diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
39−index 714a9bf1..9733c612 100644
39+index b68f0c68..a18efd96 100644
4040--- a/startkde/startkde.cmake
4141+++ b/startkde/startkde.cmake
4242@@ -1,22 +1,31 @@
@@ -185,6 +185,7 @@ index 714a9bf1..9733c612 100644
185185-ksplashrc KSplash Theme Breeze
186186+ksplashrc KSplash Theme org.kde.breeze.desktop
187187 ksplashrc KSplash Engine KSplashQML
188+ kdeglobals KScreen ScaleFactor ''
188189 kdeglobals KScreen ScreenScaleFactors ''
189190 kcmfonts General forceFontDPI 0
190191+kcmfonts General dontChangeAASettings true
@@ -253,7 +254,7 @@ index 714a9bf1..9733c612 100644
253254
254255 #Do not sync any of this section with the wayland versions as there scale factors are
255256 #sent properly over wl_output
256−@@ -99,26 +180,33 @@ fi
257+@@ -104,26 +185,33 @@ fi
257258 #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us
258259 export QT_AUTO_SCREEN_SCALE_FACTOR=0
259260
@@ -300,7 +301,7 @@ index 714a9bf1..9733c612 100644
300301 Xft.dpi: $kcmfonts_general_forcefontdpi
301302 EOF
302303 fi
303−@@ -127,11 +215,11 @@ dl=$DESKTOP_LOCKED
304+@@ -132,11 +220,11 @@ dl=$DESKTOP_LOCKED
304305 unset DESKTOP_LOCKED # Don't want it in the environment
305306
306307 ksplash_pid=
@@ -314,7 +315,7 @@ index 714a9bf1..9733c612 100644
314315 ;;
315316 None)
316317 ;;
317−@@ -140,69 +228,6 @@ if test -z "$dl"; then
318+@@ -145,27 +233,6 @@ if test -z "$dl"; then
318319 esac
319320 fi
320321
@@ -338,53 +339,11 @@ index 714a9bf1..9733c612 100644
338339- test -r "$file" && . "$file" || true
339340- done
340341-done
341−-
342−-# Activate the kde font directories.
343−-#
344−-# There are 4 directories that may be used for supplying fonts for KDE.
345−-#
346−-# There are two system directories. These belong to the administrator.
347−-# There are two user directories, where the user may add her own fonts.
348−-#
349−-# The 'override' versions are for fonts that should come first in the list,
350−-# i.e. if you have a font in your 'override' directory, it will be used in
351−-# preference to any other.
352−-#
353−-# The preference order looks like this:
354−-# user override, system override, X, user, system
355−-#
356−-# Where X is the original font database that was set up before this script
357−-# runs.
358−-
359−-usr_odir=$HOME/.fonts/kde-override
360−-usr_fdir=$HOME/.fonts
361−-
362−-if test -n "$KDEDIRS"; then
363−- kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
364−- sys_odir=$kdedirs_first/share/fonts/override
365−- sys_fdir=$kdedirs_first/share/fonts
366−-else
367−- sys_odir=$KDEDIR/share/fonts/override
368−- sys_fdir=$KDEDIR/share/fonts
369−-fi
370−-
371−-# We run mkfontdir on the user's font dirs (if we have permission) to pick
372−-# up any new fonts they may have installed. If mkfontdir fails, we still
373−-# add the user's dirs to the font path, as they might simply have been made
374−-# read-only by the administrator, for whatever reason.
375−-
376−-test -d "$sys_odir" && xset +fp "$sys_odir"
377−-test -d "$usr_odir" && (mkfontdir "$usr_odir" ; xset +fp "$usr_odir")
378−-test -d "$usr_fdir" && (mkfontdir "$usr_fdir" ; xset fp+ "$usr_fdir")
379−-test -d "$sys_fdir" && xset fp+ "$sys_fdir"
380−-
381−-# Ask X11 to rebuild its font list.
382−-xset fp rehash
383342-
384343 # Set a left cursor instead of the standard X11 "X" cursor, since I've heard
385344 # from some users that they're confused and don't know what to do. This is
386345 # especially necessary on slow machines, where starting KDE takes one or two
387−@@ -257,44 +282,65 @@ export XDG_DATA_DIRS
346+@@ -221,44 +288,65 @@ export XDG_DATA_DIRS
388347 #
389348 KDE_FULL_SESSION=true
390349 export KDE_FULL_SESSION
@@ -463,7 +422,7 @@ index 714a9bf1..9733c612 100644
463422
464423 # finally, give the session control to the session manager
465424 # see kdebase/ksmserver for the description of the rest of the startup sequence
466−@@ -306,12 +352,16 @@ qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
425+@@ -270,12 +358,16 @@ qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
467426 # We only check for 255 which means that the ksmserver process could not be
468427 # started, any problems thereafter, e.g. ksmserver failing to initialize,
469428 # will remain undetected.
@@ -483,7 +442,7 @@ index 714a9bf1..9733c612 100644
483442 if test $? -eq 255; then
484443 # Startup error
485444 echo 'startkde: Could not start ksmserver. Check your installation.' 1>&2
486−@@ -322,36 +372,36 @@ fi
445+@@ -286,36 +378,36 @@ fi
487446 #Anything after here is logout
488447 #It is not called after shutdown/restart
489448
@@ -534,7 +493,7 @@ index 714a9bf1..9733c612 100644
534493
535494 echo 'startkde: Done.' 1>&2
536495diff --git a/startkde/startplasma.cmake b/startkde/startplasma.cmake
537−index de98541c..39c0b521 100644
496+index 1fe41c59..39c0b521 100644
538497--- a/startkde/startplasma.cmake
539498+++ b/startkde/startplasma.cmake
540499@@ -1,6 +1,6 @@
@@ -582,62 +541,14 @@ index de98541c..39c0b521 100644
582541 ;;
583542 None)
584543 ;;
585−@@ -50,48 +48,6 @@ fi
586− #In wayland we want Plasma to use Qt's scaling
587− export PLASMA_USE_QT_SCALING=1
588−
589−-# Activate the kde font directories.
590−-#
591−-# There are 4 directories that may be used for supplying fonts for KDE.
592−-#
593−-# There are two system directories. These belong to the administrator.
594−-# There are two user directories, where the user may add her own fonts.
595−-#
596−-# The 'override' versions are for fonts that should come first in the list,
597−-# i.e. if you have a font in your 'override' directory, it will be used in
598−-# preference to any other.
599−-#
600−-# The preference order looks like this:
601−-# user override, system override, X, user, system
602−-#
603−-# Where X is the original font database that was set up before this script
604−-# runs.
605−-
606−-usr_odir=$HOME/.fonts/kde-override
607−-usr_fdir=$HOME/.fonts
608−-
609−-if test -n "$KDEDIRS"; then
610−- kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
611−- sys_odir=$kdedirs_first/share/fonts/override
612−- sys_fdir=$kdedirs_first/share/fonts
613−-else
614−- sys_odir=$KDEDIR/share/fonts/override
615−- sys_fdir=$KDEDIR/share/fonts
616−-fi
617−-
618−-# We run mkfontdir on the user's font dirs (if we have permission) to pick
619−-# up any new fonts they may have installed. If mkfontdir fails, we still
620−-# add the user's dirs to the font path, as they might simply have been made
621−-# read-only by the administrator, for whatever reason.
622−-
623−-test -d "$sys_odir" && xset +fp "$sys_odir"
624−-test -d "$usr_odir" && (mkfontdir "$usr_odir" ; xset +fp "$usr_odir")
625−-test -d "$usr_fdir" && (mkfontdir "$usr_fdir" ; xset fp+ "$usr_fdir")
626−-test -d "$sys_fdir" && xset fp+ "$sys_fdir"
627−-
628−-# Ask X11 to rebuild its font list.
629−-xset fp rehash
630−-
631− # Set a left cursor instead of the standard X11 "X" cursor, since I've heard
632− # from some users that they're confused and don't know what to do. This is
633− # especially necessary on slow machines, where starting KDE takes one or two
634−@@ -100,22 +56,13 @@ xset fp rehash
544+@@ -58,23 +56,13 @@ export PLASMA_USE_QT_SCALING=1
635545 # If the user has overwritten fonts, the cursor font may be different now
636546 # so don't move this up.
637547 #
638548-xsetroot -cursor_name left_ptr
639549-
640550-# Get Ghostscript to look into user's KDE fonts dir for additional Fontmap
551+-usr_fdir=$HOME/.fonts
641552-if test -n "$GS_LIB" ; then
642553- GS_LIB=$usr_fdir:$GS_LIB
643554- export GS_LIB
@@ -657,7 +568,7 @@ index de98541c..39c0b521 100644
657568
658569 # At this point all environment variables are set, let's send it to the DBus session server to update the activation environment
659570 if which dbus-update-activation-environment >/dev/null 2>/dev/null ; then
660−@@ -131,16 +78,15 @@ fi
571+@@ -90,16 +78,15 @@ fi
661572
662573 # We set LD_BIND_NOW to increase the efficiency of kdeinit.
663574 # kdeinit unsets this variable before loading applications.
@@ -676,7 +587,7 @@ index de98541c..39c0b521 100644
676587
677588 # finally, give the session control to the session manager
678589 # see kdebase/ksmserver for the description of the rest of the startup sequence
679−@@ -166,19 +112,19 @@ fi
590+@@ -125,19 +112,19 @@ fi
680591 #Anything after here is logout
681592 #It is not called after shutdown/restart
682593
@@ -704,7 +615,7 @@ index de98541c..39c0b521 100644
704615 done
705616 break
706617 fi
707−@@ -187,15 +133,17 @@ fi
618+@@ -146,15 +133,17 @@ fi
708619
709620 echo 'startplasma: Shutting down...' 1>&2
710621 # just in case
@@ -727,7 +638,7 @@ index de98541c..39c0b521 100644
727638
728639 echo 'startplasma: Done.' 1>&2
729640diff --git a/startkde/startplasmacompositor.cmake b/startkde/startplasmacompositor.cmake
730−index dd9e304d..12132f9e 100644
641+index dcb473a4..48dbf465 100644
731642--- a/startkde/startplasmacompositor.cmake
732643+++ b/startkde/startplasmacompositor.cmake
733644@@ -1,118 +1,174 @@
@@ -940,18 +851,18 @@ index dd9e304d..12132f9e 100644
940851 #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND scaled by the wl_output
941852 export QT_AUTO_SCREEN_SCALE_FACTOR=0
942853
943−-# XCursor mouse theme needs to be applied here to work even for kded or ksmserver
944−-if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then
945−- @EXPORT_XCURSOR_PATH@
946854+XCURSOR_PATH=~/.icons
947855+IFS=":" read -r -a xdgDirs <<< "$XDG_DATA_DIRS"
948856+for xdgDir in "${xdgDirs[@]}"; do
949857+ XCURSOR_PATH="$XCURSOR_PATH:$xdgDir/icons"
950858+done
951859+export XCURSOR_PATH
952−
860++
861+ # XCursor mouse theme needs to be applied here to work even for kded or ksmserver
862+-if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then
863+- @EXPORT_XCURSOR_PATH@
864+-
953865- # TODO: is kapplymousetheme a core app?
954−+# XCursor mouse theme needs to be applied here to work even for kded or ksmserver
955866+if [ -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ]; then
956867 #kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
957868- if test $? -eq 10; then
@@ -1036,7 +947,7 @@ index dd9e304d..12132f9e 100644
1036947 : # ok
1037948 else
1038949 echo 'startplasmacompositor: Could not start D-Bus. Can you call qdbus?' 1>&2
1039−@@ -212,26 +228,47 @@ export KDE_FULL_SESSION
950+@@ -212,7 +228,7 @@ export KDE_FULL_SESSION
1040951 KDE_SESSION_VERSION=5
1041952 export KDE_SESSION_VERSION
1042953
@@ -1045,7 +956,9 @@ index dd9e304d..12132f9e 100644
1045956 export KDE_SESSION_UID
1046957
1047958 XDG_CURRENT_DESKTOP=KDE
1048− export XDG_CURRENT_DESKTOP
959+@@ -221,20 +237,41 @@ export XDG_CURRENT_DESKTOP
960+ XDG_SESSION_TYPE=wayland
961+ export XDG_SESSION_TYPE
1049962
1050963+# Source scripts found in <config locations>/plasma-workspace/env/*.sh
1051964+# (where <config locations> correspond to the system and user's configuration
pkgs/desktops/plasma-5/srcs.nix+180−180
@@ -3,363 +3,363 @@
33
44{
55 bluedevil = {
6− version = "5.14.5";
6+ version = "5.15.2";
77 src = fetchurl {
8− url = "${mirror}/stable/plasma/5.14.5/bluedevil-5.14.5.tar.xz";
9− sha256 = "1khqw11apvcf5g5m9z111rvk4scxh3z3yhcpwqws1h0s5c5lr7z7";
10− name = "bluedevil-5.14.5.tar.xz";
8+ url = "${mirror}/stable/plasma/5.15.2/bluedevil-5.15.2.tar.xz";
9+ sha256 = "1d6dq7kgxni7hj5cdfqlb2ff3ddy30a82w80nxfwshzp1xbdljzw";
10+ name = "bluedevil-5.15.2.tar.xz";
1111 };
1212 };
1313 breeze = {
14− version = "5.14.5";
14+ version = "5.15.2";
1515 src = fetchurl {
16− url = "${mirror}/stable/plasma/5.14.5/breeze-5.14.5.tar.xz";
17− sha256 = "15hphz2mm2m3j0a0hwj7m65rggyaxdxy08yqs73bg3yg67n6x3p7";
18− name = "breeze-5.14.5.tar.xz";
16+ url = "${mirror}/stable/plasma/5.15.2/breeze-5.15.2.tar.xz";
17+ sha256 = "0m2fpcbi3fsj9a3j3ry7l7f38whm38mpprap86v40m4zcv3wcav8";
18+ name = "breeze-5.15.2.tar.xz";
1919 };
2020 };
2121 breeze-grub = {
22− version = "5.14.5";
22+ version = "5.15.2";
2323 src = fetchurl {
24− url = "${mirror}/stable/plasma/5.14.5/breeze-grub-5.14.5.tar.xz";
25− sha256 = "0bkaaxfl1ds58qcdrxswaacir7wcc65a960lwdkmpdl16g9f4gix";
26− name = "breeze-grub-5.14.5.tar.xz";
24+ url = "${mirror}/stable/plasma/5.15.2/breeze-grub-5.15.2.tar.xz";
25+ sha256 = "18rm4h395w8x3yrirl53402qiiz7yc4i3iw5ncmd0184jhl6n7z5";
26+ name = "breeze-grub-5.15.2.tar.xz";
2727 };
2828 };
2929 breeze-gtk = {
30− version = "5.14.5";
30+ version = "5.15.2";
3131 src = fetchurl {
32− url = "${mirror}/stable/plasma/5.14.5/breeze-gtk-5.14.5.tar.xz";
33− sha256 = "0bysq83xbqmhb4wld51zd6lllr66b8w7pinizc99k8z1yz5jdb0m";
34− name = "breeze-gtk-5.14.5.tar.xz";
32+ url = "${mirror}/stable/plasma/5.15.2/breeze-gtk-5.15.2.tar.xz";
33+ sha256 = "0fbxfsjyxjk9shrjiz5w9x3v5jk3f4csw2rryk7kdk5q1m5ppfjw";
34+ name = "breeze-gtk-5.15.2.tar.xz";
3535 };
3636 };
3737 breeze-plymouth = {
38− version = "5.14.5";
38+ version = "5.15.2";
3939 src = fetchurl {
40− url = "${mirror}/stable/plasma/5.14.5/breeze-plymouth-5.14.5.tar.xz";
41− sha256 = "1rbdpz9vlami7217v3dk8ljz0fgjz9zi1l0gwkhslayz5sybld96";
42− name = "breeze-plymouth-5.14.5.tar.xz";
40+ url = "${mirror}/stable/plasma/5.15.2/breeze-plymouth-5.15.2.tar.xz";
41+ sha256 = "0n6pr4k9jc3ivi0dhrrfv9xhf0p4irxbpghx3m3b860jwmm5d4zh";
42+ name = "breeze-plymouth-5.15.2.tar.xz";
4343 };
4444 };
4545 discover = {
46− version = "5.14.5";
46+ version = "5.15.2";
4747 src = fetchurl {
48− url = "${mirror}/stable/plasma/5.14.5/discover-5.14.5.tar.xz";
49− sha256 = "0gxhl2cv5yz3jw8fp8g8idi1k5hlhnvwbnvvg0dgnlzz6jb1s8dd";
50− name = "discover-5.14.5.tar.xz";
48+ url = "${mirror}/stable/plasma/5.15.2/discover-5.15.2.tar.xz";
49+ sha256 = "0v9wnsgqxa4vbvgdsgpm54hnw8dsxahapl42vkf0xjfx101f3y62";
50+ name = "discover-5.15.2.tar.xz";
5151 };
5252 };
5353 drkonqi = {
54− version = "5.14.5";
54+ version = "5.15.2";
5555 src = fetchurl {
56− url = "${mirror}/stable/plasma/5.14.5/drkonqi-5.14.5.tar.xz";
57− sha256 = "0xgym368f9r21wjh9fpv16m90dcj87g9p5df850fnn2k5n8x38z8";
58− name = "drkonqi-5.14.5.tar.xz";
56+ url = "${mirror}/stable/plasma/5.15.2/drkonqi-5.15.2.tar.xz";
57+ sha256 = "085dv4ga7gvycs470v594i5j8s55aygalx52fcbbncji8r1x0zdv";
58+ name = "drkonqi-5.15.2.tar.xz";
5959 };
6060 };
6161 kactivitymanagerd = {
62− version = "5.14.5";
62+ version = "5.15.2";
6363 src = fetchurl {
64− url = "${mirror}/stable/plasma/5.14.5/kactivitymanagerd-5.14.5.tar.xz";
65− sha256 = "0zms9npis0rklnbz93c69h4yg7dkrmfkzvzsfvkg90w37ap3vyl7";
66− name = "kactivitymanagerd-5.14.5.tar.xz";
64+ url = "${mirror}/stable/plasma/5.15.2/kactivitymanagerd-5.15.2.tar.xz";
65+ sha256 = "1bldpay46gww1m0087bdrl64paw2466mnnr10w3qv1c2g3w4aiky";
66+ name = "kactivitymanagerd-5.15.2.tar.xz";
6767 };
6868 };
6969 kde-cli-tools = {
70− version = "5.14.5";
70+ version = "5.15.2";
7171 src = fetchurl {
72− url = "${mirror}/stable/plasma/5.14.5/kde-cli-tools-5.14.5.tar.xz";
73− sha256 = "01mrnjqla4q07cnb1p51nq2pvj9vaamic3dsyj3b7hqky9fna9ln";
74− name = "kde-cli-tools-5.14.5.tar.xz";
72+ url = "${mirror}/stable/plasma/5.15.2/kde-cli-tools-5.15.2.tar.xz";
73+ sha256 = "1b178szx0ansd9srkj1rzqcc1ijfvs92vg870plzqy4ygg94yc32";
74+ name = "kde-cli-tools-5.15.2.tar.xz";
7575 };
7676 };
7777 kdecoration = {
78− version = "5.14.5";
78+ version = "5.15.2";
7979 src = fetchurl {
80− url = "${mirror}/stable/plasma/5.14.5/kdecoration-5.14.5.tar.xz";
81− sha256 = "115pli0qpa8lx0jasg1886fcg7gb2kk8v6k8r8l8c820l97sq7in";
82− name = "kdecoration-5.14.5.tar.xz";
80+ url = "${mirror}/stable/plasma/5.15.2/kdecoration-5.15.2.tar.xz";
81+ sha256 = "1gyy55j0bs1adglqq8wjy284pdp3vm9bj51q7h7q7yz2khk8kc3r";
82+ name = "kdecoration-5.15.2.tar.xz";
8383 };
8484 };
8585 kde-gtk-config = {
86− version = "5.14.5";
86+ version = "5.15.2";
8787 src = fetchurl {
88− url = "${mirror}/stable/plasma/5.14.5/kde-gtk-config-5.14.5.tar.xz";
89− sha256 = "12467wkjh2nmcf6r7n8qin1rryd39g0dg7gn43sdg6vdwpyl2kdm";
90− name = "kde-gtk-config-5.14.5.tar.xz";
88+ url = "${mirror}/stable/plasma/5.15.2/kde-gtk-config-5.15.2.tar.xz";
89+ sha256 = "07ng7nynmfn23zssbawn4xjnj8sqkqsdv1nv29pkhda82bpji5a4";
90+ name = "kde-gtk-config-5.15.2.tar.xz";
9191 };
9292 };
9393 kdeplasma-addons = {
94− version = "5.14.5";
94+ version = "5.15.2";
9595 src = fetchurl {
96− url = "${mirror}/stable/plasma/5.14.5/kdeplasma-addons-5.14.5.tar.xz";
97− sha256 = "18sph3719d9pq2j5k7swiv9xbrpj659a3q66zvhz3dmh11y73f0m";
98− name = "kdeplasma-addons-5.14.5.tar.xz";
96+ url = "${mirror}/stable/plasma/5.15.2/kdeplasma-addons-5.15.2.tar.xz";
97+ sha256 = "0c1j9830n5vyqjmyclljkxhgmgyhhzm4ck9zm5cnjf1s5x9hqdly";
98+ name = "kdeplasma-addons-5.15.2.tar.xz";
9999 };
100100 };
101101 kgamma5 = {
102− version = "5.14.5";
102+ version = "5.15.2";
103103 src = fetchurl {
104− url = "${mirror}/stable/plasma/5.14.5/kgamma5-5.14.5.tar.xz";
105− sha256 = "17smrdwyalknb3f6ckqs7kglfpqwajbiyd212wlsmqbva4by0fy0";
106− name = "kgamma5-5.14.5.tar.xz";
104+ url = "${mirror}/stable/plasma/5.15.2/kgamma5-5.15.2.tar.xz";
105+ sha256 = "06qp20dnvqg0bcf09iwhwcqbkyz85z27cp811vg72nq6vqpd98sy";
106+ name = "kgamma5-5.15.2.tar.xz";
107107 };
108108 };
109109 khotkeys = {
110− version = "5.14.5";
110+ version = "5.15.2";
111111 src = fetchurl {
112− url = "${mirror}/stable/plasma/5.14.5/khotkeys-5.14.5.tar.xz";
113− sha256 = "0572jpgbhacx4gy40m594rbnxy3zaq5w3lcrfd8i2750ljswcq24";
114− name = "khotkeys-5.14.5.tar.xz";
112+ url = "${mirror}/stable/plasma/5.15.2/khotkeys-5.15.2.tar.xz";
113+ sha256 = "18hjlvvbnid6j77pnr515kglllsidx8dgrx5sbvy9myvsd47wlki";
114+ name = "khotkeys-5.15.2.tar.xz";
115115 };
116116 };
117117 kinfocenter = {
118− version = "5.14.5";
118+ version = "5.15.2";
119119 src = fetchurl {
120− url = "${mirror}/stable/plasma/5.14.5/kinfocenter-5.14.5.tar.xz";
121− sha256 = "1z1i9g923cbdni5gfa6dpv46z1p2v40rfcvhy7i9h5nf49aw2rnc";
122− name = "kinfocenter-5.14.5.tar.xz";
120+ url = "${mirror}/stable/plasma/5.15.2/kinfocenter-5.15.2.tar.xz";
121+ sha256 = "0wag0md22dvnz897s535qigsimmcis7i9fsngq1hbqz22rx7x5pw";
122+ name = "kinfocenter-5.15.2.tar.xz";
123123 };
124124 };
125125 kmenuedit = {
126− version = "5.14.5";
126+ version = "5.15.2";
127127 src = fetchurl {
128− url = "${mirror}/stable/plasma/5.14.5/kmenuedit-5.14.5.tar.xz";
129− sha256 = "1aa4a35s5h44fc88hmmfdpzy26zc47h9n448cd4vbm4bm411551d";
130− name = "kmenuedit-5.14.5.tar.xz";
128+ url = "${mirror}/stable/plasma/5.15.2/kmenuedit-5.15.2.tar.xz";
129+ sha256 = "1xjnj40m86sdyna9xm5bj0m4mnmqrpkpg9gnhr1naqwqxaahvvyk";
130+ name = "kmenuedit-5.15.2.tar.xz";
131131 };
132132 };
133133 kscreen = {
134− version = "5.14.5";
134+ version = "5.15.2";
135135 src = fetchurl {
136− url = "${mirror}/stable/plasma/5.14.5/kscreen-5.14.5.tar.xz";
137− sha256 = "1nb1ysgcx49galbf16mxbawybfik92bpr9vbwgg5ycsdx1f9q8yi";
138− name = "kscreen-5.14.5.tar.xz";
136+ url = "${mirror}/stable/plasma/5.15.2/kscreen-5.15.2.tar.xz";
137+ sha256 = "1vzp98cjhpbp565rfa1id1pcyir4hagmrz020jjn0gb2dfk6wrsv";
138+ name = "kscreen-5.15.2.tar.xz";
139139 };
140140 };
141141 kscreenlocker = {
142− version = "5.14.5";
142+ version = "5.15.2";
143143 src = fetchurl {
144− url = "${mirror}/stable/plasma/5.14.5/kscreenlocker-5.14.5.tar.xz";
145− sha256 = "16amr7pz0k6w5vkk1dwn2qi3s1mln0jypwmjazqq2lbwimn8k56m";
146− name = "kscreenlocker-5.14.5.tar.xz";
144+ url = "${mirror}/stable/plasma/5.15.2/kscreenlocker-5.15.2.tar.xz";
145+ sha256 = "09b3zb95psg3gwg1lcnqsrw6llg7bdlq97zsg373gs4ljlmdgwms";
146+ name = "kscreenlocker-5.15.2.tar.xz";
147147 };
148148 };
149149 ksshaskpass = {
150− version = "5.14.5";
150+ version = "5.15.2";
151151 src = fetchurl {
152− url = "${mirror}/stable/plasma/5.14.5/ksshaskpass-5.14.5.tar.xz";
153− sha256 = "0skr247k4ky7lpbdwlmkrnr3mj1pa6pxl96pyxwsw7za784qg6dj";
154− name = "ksshaskpass-5.14.5.tar.xz";
152+ url = "${mirror}/stable/plasma/5.15.2/ksshaskpass-5.15.2.tar.xz";
153+ sha256 = "1nf8s8vdgbak8sys9fw53xfcjpy1hnq1jjyxfyw22fhz2qnx4a7p";
154+ name = "ksshaskpass-5.15.2.tar.xz";
155155 };
156156 };
157157 ksysguard = {
158− version = "5.14.5";
158+ version = "5.15.2";
159159 src = fetchurl {
160− url = "${mirror}/stable/plasma/5.14.5/ksysguard-5.14.5.tar.xz";
161− sha256 = "0ybxh6ll080rkrrr4b5ydl06x8zi97702661cajvbv00lhq4vp8b";
162− name = "ksysguard-5.14.5.tar.xz";
160+ url = "${mirror}/stable/plasma/5.15.2/ksysguard-5.15.2.tar.xz";
161+ sha256 = "1n38kc9m7jkimxrh0lqff9zz82jap0qv69l3490zsl70pgbhgwdn";
162+ name = "ksysguard-5.15.2.tar.xz";
163163 };
164164 };
165165 kwallet-pam = {
166− version = "5.14.5";
166+ version = "5.15.2";
167167 src = fetchurl {
168− url = "${mirror}/stable/plasma/5.14.5/kwallet-pam-5.14.5.tar.xz";
169− sha256 = "1mkjjc88kqf5x313nifla9pzrgzqm4v92150dbs1f89bsn673pk8";
170− name = "kwallet-pam-5.14.5.tar.xz";
168+ url = "${mirror}/stable/plasma/5.15.2/kwallet-pam-5.15.2.tar.xz";
169+ sha256 = "12hjg6cwgh4h85hfyw3mdpci9p6s6h6z7i6s2hhnsvfr2zm6nq6z";
170+ name = "kwallet-pam-5.15.2.tar.xz";
171171 };
172172 };
173173 kwayland-integration = {
174− version = "5.14.5";
174+ version = "5.15.2";
175175 src = fetchurl {
176− url = "${mirror}/stable/plasma/5.14.5/kwayland-integration-5.14.5.tar.xz";
177− sha256 = "0rd0xhb53iixv9i8x0gh3rr1082lj7zdymsqdmi7sfgb66g8c03l";
178− name = "kwayland-integration-5.14.5.tar.xz";
176+ url = "${mirror}/stable/plasma/5.15.2/kwayland-integration-5.15.2.tar.xz";
177+ sha256 = "1j076lmkgm1m1ymrpkmzh7yq4sk8qv12ggrczb9ri2gimklghmav";
178+ name = "kwayland-integration-5.15.2.tar.xz";
179179 };
180180 };
181181 kwin = {
182− version = "5.14.5";
182+ version = "5.15.2";
183183 src = fetchurl {
184− url = "${mirror}/stable/plasma/5.14.5/kwin-5.14.5.tar.xz";
185− sha256 = "0ifdlnzw3ydrbidzk256vks66d1rxyilhqi09csygx17jqk7szj4";
186− name = "kwin-5.14.5.tar.xz";
184+ url = "${mirror}/stable/plasma/5.15.2/kwin-5.15.2.tar.xz";
185+ sha256 = "112xysqgffw718272praaym86kbbq01rwjf9w1sv3b8i1lbrfjfy";
186+ name = "kwin-5.15.2.tar.xz";
187187 };
188188 };
189189 kwrited = {
190− version = "5.14.5";
190+ version = "5.15.2";
191191 src = fetchurl {
192− url = "${mirror}/stable/plasma/5.14.5/kwrited-5.14.5.tar.xz";
193− sha256 = "0115qscr8a54h7h8w4xw4fjzp7qipyw3d3jswhii7axnzp6q6qnh";
194− name = "kwrited-5.14.5.tar.xz";
192+ url = "${mirror}/stable/plasma/5.15.2/kwrited-5.15.2.tar.xz";
193+ sha256 = "0inm1ry62p23ivad0k3p5cwk8hwirrk7incpx8znd755pr5905hy";
194+ name = "kwrited-5.15.2.tar.xz";
195195 };
196196 };
197197 libkscreen = {
198− version = "5.14.5";
198+ version = "5.15.2";
199199 src = fetchurl {
200− url = "${mirror}/stable/plasma/5.14.5/libkscreen-5.14.5.tar.xz";
201− sha256 = "1vyaml5ap9siw9idiny92li2bykd0nwjsmwmg0c7ad912j4g1s7y";
202− name = "libkscreen-5.14.5.tar.xz";
200+ url = "${mirror}/stable/plasma/5.15.2/libkscreen-5.15.2.tar.xz";
201+ sha256 = "051carpksbh3n25cvd6i504jjjzmqzh0dj9p5chqmyfcp7m0lvm4";
202+ name = "libkscreen-5.15.2.tar.xz";
203203 };
204204 };
205205 libksysguard = {
206− version = "5.14.5";
206+ version = "5.15.2";
207207 src = fetchurl {
208− url = "${mirror}/stable/plasma/5.14.5/libksysguard-5.14.5.tar.xz";
209− sha256 = "11nz0g7dqvpvgsv0a7sai445vgfsfi25plj7jb1i46n7zf8i8mya";
210− name = "libksysguard-5.14.5.tar.xz";
208+ url = "${mirror}/stable/plasma/5.15.2/libksysguard-5.15.2.tar.xz";
209+ sha256 = "058yajija7d7zvyv9vfyxbmj2y5amrv96mkbypqcdmzx69x5ig4c";
210+ name = "libksysguard-5.15.2.tar.xz";
211211 };
212212 };
213213 milou = {
214− version = "5.14.5";
214+ version = "5.15.2";
215215 src = fetchurl {
216− url = "${mirror}/stable/plasma/5.14.5/milou-5.14.5.tar.xz";
217− sha256 = "1776441mhmwcvrzmdqg531md79azbkbhng51kyq6i9cvkhxyf583";
218− name = "milou-5.14.5.tar.xz";
216+ url = "${mirror}/stable/plasma/5.15.2/milou-5.15.2.tar.xz";
217+ sha256 = "0y7dbjhwbk7gnjpxsn2rddp3i3a02hfwiyx9070lm6am3lvlj8r8";
218+ name = "milou-5.15.2.tar.xz";
219219 };
220220 };
221221 oxygen = {
222− version = "5.14.5";
222+ version = "5.15.2";
223223 src = fetchurl {
224− url = "${mirror}/stable/plasma/5.14.5/oxygen-5.14.5.tar.xz";
225− sha256 = "0h70k7af69zdky0g6napd1kdnvbxhnw3nrwr9jqv1fq5762xnkk8";
226− name = "oxygen-5.14.5.tar.xz";
224+ url = "${mirror}/stable/plasma/5.15.2/oxygen-5.15.2.tar.xz";
225+ sha256 = "1vrcdj61ii391swqxjbsfccmv854vg8zsbvjxb78a6fp6k11wivj";
226+ name = "oxygen-5.15.2.tar.xz";
227227 };
228228 };
229229 plasma-browser-integration = {
230− version = "5.14.5";
230+ version = "5.15.2";
231231 src = fetchurl {
232− url = "${mirror}/stable/plasma/5.14.5/plasma-browser-integration-5.14.5.tar.xz";
233− sha256 = "1260h5sh0gkbkhcj17ss0n0y48i1pxh3f4p5dcbgbz775g1dhi2s";
234− name = "plasma-browser-integration-5.14.5.tar.xz";
232+ url = "${mirror}/stable/plasma/5.15.2/plasma-browser-integration-5.15.2.tar.xz";
233+ sha256 = "00mp7wwk0jz7wrkii5yq58amsw54dyjcprp3w58phvydam2d3n79";
234+ name = "plasma-browser-integration-5.15.2.tar.xz";
235235 };
236236 };
237237 plasma-desktop = {
238− version = "5.14.5";
238+ version = "5.15.2";
239239 src = fetchurl {
240− url = "${mirror}/stable/plasma/5.14.5/plasma-desktop-5.14.5.tar.xz";
241− sha256 = "0pr07p36jrpvkk4fp14fb4minnwj5gnmvdg9jf7bi8sjjz6jpnnl";
242− name = "plasma-desktop-5.14.5.tar.xz";
240+ url = "${mirror}/stable/plasma/5.15.2/plasma-desktop-5.15.2.tar.xz";
241+ sha256 = "1axlkjmgf3chg9wl13j91vmfik0va8lngq45y0xr15lc88w6qms0";
242+ name = "plasma-desktop-5.15.2.tar.xz";
243243 };
244244 };
245245 plasma-integration = {
246− version = "5.14.5";
246+ version = "5.15.2";
247247 src = fetchurl {
248− url = "${mirror}/stable/plasma/5.14.5/plasma-integration-5.14.5.tar.xz";
249− sha256 = "15nhrliri4cjx712f1rxbq2f87lj4wxsqgbhw9p02z12h3n9z3ds";
250− name = "plasma-integration-5.14.5.tar.xz";
248+ url = "${mirror}/stable/plasma/5.15.2/plasma-integration-5.15.2.tar.xz";
249+ sha256 = "0glj6gsah96xbgcdijqjfpn7dj0yh05dvpvjhk6wmrb30z63hykx";
250+ name = "plasma-integration-5.15.2.tar.xz";
251251 };
252252 };
253253 plasma-nm = {
254− version = "5.14.5";
254+ version = "5.15.2";
255255 src = fetchurl {
256− url = "${mirror}/stable/plasma/5.14.5/plasma-nm-5.14.5.tar.xz";
257− sha256 = "1hf98c9llcff0h2w4l45nw0vysxvnanf7hczhj93z4562qrafxm2";
258− name = "plasma-nm-5.14.5.tar.xz";
256+ url = "${mirror}/stable/plasma/5.15.2/plasma-nm-5.15.2.tar.xz";
257+ sha256 = "12fahsqs54k8b5g9ipzisvaq1lmmgmyh3xbdixn1bxqdfdc50jax";
258+ name = "plasma-nm-5.15.2.tar.xz";
259259 };
260260 };
261261 plasma-pa = {
262− version = "5.14.5";
262+ version = "5.15.2";
263263 src = fetchurl {
264− url = "${mirror}/stable/plasma/5.14.5/plasma-pa-5.14.5.tar.xz";
265− sha256 = "0z74qg7m4y1ifzni1877hiil3rn6ad3x4fvgv4bib4jhg7ckaiqg";
266− name = "plasma-pa-5.14.5.tar.xz";
264+ url = "${mirror}/stable/plasma/5.15.2/plasma-pa-5.15.2.tar.xz";
265+ sha256 = "1cw3c84spl2y6fzp0mn986xl7j60z28acga95x5zr2xiaig1p1q3";
266+ name = "plasma-pa-5.15.2.tar.xz";
267267 };
268268 };
269269 plasma-sdk = {
270− version = "5.14.5";
270+ version = "5.15.2";
271271 src = fetchurl {
272− url = "${mirror}/stable/plasma/5.14.5/plasma-sdk-5.14.5.tar.xz";
273− sha256 = "0v90nk6yhrapdszh8sd3m0wffkjgnrhdy1sz1vl9s0ab5sdpmxr1";
274− name = "plasma-sdk-5.14.5.tar.xz";
272+ url = "${mirror}/stable/plasma/5.15.2/plasma-sdk-5.15.2.tar.xz";
273+ sha256 = "0kq5h2zfg1f11cmfzmsn4vlfvj1jfkz1pnc67zgs7f70bap4k8zr";
274+ name = "plasma-sdk-5.15.2.tar.xz";
275275 };
276276 };
277277 plasma-tests = {
278− version = "5.14.5";
278+ version = "5.15.2";
279279 src = fetchurl {
280− url = "${mirror}/stable/plasma/5.14.5/plasma-tests-5.14.5.tar.xz";
281− sha256 = "03h889xn6i067d1sdymn6fgj8xik3pa75lljl8kj3vl6bks24jyh";
282− name = "plasma-tests-5.14.5.tar.xz";
280+ url = "${mirror}/stable/plasma/5.15.2/plasma-tests-5.15.2.tar.xz";
281+ sha256 = "1bsplrmvw73lsdiqwiznbxicyl36vf30mm34bfib8ii0rpx4cn2i";
282+ name = "plasma-tests-5.15.2.tar.xz";
283283 };
284284 };
285285 plasma-vault = {
286− version = "5.14.5";
286+ version = "5.15.2";
287287 src = fetchurl {
288− url = "${mirror}/stable/plasma/5.14.5/plasma-vault-5.14.5.tar.xz";
289− sha256 = "17r44n0mkcwc2fkjf397ks8xv82m59gvnawbj9713c5l31ln5mi3";
290− name = "plasma-vault-5.14.5.tar.xz";
288+ url = "${mirror}/stable/plasma/5.15.2/plasma-vault-5.15.2.tar.xz";
289+ sha256 = "0gmch0s9vy72qbxk0bshxd2hmx6dwdad0pk29glpq7l3av3nirlp";
290+ name = "plasma-vault-5.15.2.tar.xz";
291291 };
292292 };
293293 plasma-workspace = {
294− version = "5.14.5";
294+ version = "5.15.2";
295295 src = fetchurl {
296− url = "${mirror}/stable/plasma/5.14.5/plasma-workspace-5.14.5.tar.xz";
297− sha256 = "14d3wnsm4bi1izx5qlpk0mnqmxwx18bqypa3wwmhn1535kfz8glh";
298− name = "plasma-workspace-5.14.5.tar.xz";
296+ url = "${mirror}/stable/plasma/5.15.2/plasma-workspace-5.15.2.tar.xz";
297+ sha256 = "1ncd0mc3y8j3r8m9hrq3b07lmcccq7xz76b19rilba1a7qyd03az";
298+ name = "plasma-workspace-5.15.2.tar.xz";
299299 };
300300 };
301301 plasma-workspace-wallpapers = {
302− version = "5.14.5";
302+ version = "5.15.2";
303303 src = fetchurl {
304− url = "${mirror}/stable/plasma/5.14.5/plasma-workspace-wallpapers-5.14.5.tar.xz";
305− sha256 = "17q0685i4267ihlrii3b8764ak458kzs0inqfcj9x25m338xz19q";
306− name = "plasma-workspace-wallpapers-5.14.5.tar.xz";
304+ url = "${mirror}/stable/plasma/5.15.2/plasma-workspace-wallpapers-5.15.2.tar.xz";
305+ sha256 = "00c19b3clgcjcvafmiwb2mdkkzcq8dvwpaqaajr54c3xn9fa5vss";
306+ name = "plasma-workspace-wallpapers-5.15.2.tar.xz";
307307 };
308308 };
309309 plymouth-kcm = {
310− version = "5.14.5";
310+ version = "5.15.2";
311311 src = fetchurl {
312− url = "${mirror}/stable/plasma/5.14.5/plymouth-kcm-5.14.5.tar.xz";
313− sha256 = "1cwmkprhc4496x4a38l2x7hnifnp4daw8g1gic0ik2sm0a6xn77k";
314− name = "plymouth-kcm-5.14.5.tar.xz";
312+ url = "${mirror}/stable/plasma/5.15.2/plymouth-kcm-5.15.2.tar.xz";
313+ sha256 = "1bkrkym2kjj7knhqzzcd6qhd1nmzvwah45hqvvnaja8kd82vjlzi";
314+ name = "plymouth-kcm-5.15.2.tar.xz";
315315 };
316316 };
317317 polkit-kde-agent = {
318− version = "1-5.14.5";
318+ version = "1-5.15.2";
319319 src = fetchurl {
320− url = "${mirror}/stable/plasma/5.14.5/polkit-kde-agent-1-5.14.5.tar.xz";
321− sha256 = "1lzw4zq2ysnva5g1v85k9k6yck30wfgcy0sn1ncxy183vm36b2ag";
322− name = "polkit-kde-agent-1-5.14.5.tar.xz";
320+ url = "${mirror}/stable/plasma/5.15.2/polkit-kde-agent-1-5.15.2.tar.xz";
321+ sha256 = "1i0hf77ms0k3q4r4cmfjcv2jnml5cig15biwfkh3jyafz8q8miha";
322+ name = "polkit-kde-agent-1-5.15.2.tar.xz";
323323 };
324324 };
325325 powerdevil = {
326− version = "5.14.5";
326+ version = "5.15.2";
327327 src = fetchurl {
328− url = "${mirror}/stable/plasma/5.14.5/powerdevil-5.14.5.tar.xz";
329− sha256 = "0rdrj6k7bb1cisz1g8akxxn68c8rj0zddim1afvcq1iqr727wqj5";
330− name = "powerdevil-5.14.5.tar.xz";
328+ url = "${mirror}/stable/plasma/5.15.2/powerdevil-5.15.2.tar.xz";
329+ sha256 = "0gl5wh8s7bmjprbv9gph83qhviv87pmdadrlrnbm5n1nwb1h7kd9";
330+ name = "powerdevil-5.15.2.tar.xz";
331331 };
332332 };
333333 sddm-kcm = {
334− version = "5.14.5";
334+ version = "5.15.2";
335335 src = fetchurl {
336− url = "${mirror}/stable/plasma/5.14.5/sddm-kcm-5.14.5.tar.xz";
337− sha256 = "0aix2grc2h2w8qxcbdwxhvq09ispblnisl017bvb19apkvs0w8m1";
338− name = "sddm-kcm-5.14.5.tar.xz";
336+ url = "${mirror}/stable/plasma/5.15.2/sddm-kcm-5.15.2.tar.xz";
337+ sha256 = "1l8ma0kpqq7hcg4addm2c47w33dc12q8inii0aw4yq0syhqgzq9s";
338+ name = "sddm-kcm-5.15.2.tar.xz";
339339 };
340340 };
341341 systemsettings = {
342− version = "5.14.5";
342+ version = "5.15.2";
343343 src = fetchurl {
344− url = "${mirror}/stable/plasma/5.14.5/systemsettings-5.14.5.tar.xz";
345− sha256 = "1q1ih74vkdhss64ayc3qmbrw4hhvfl3axlkhh63rky09qn83x9zw";
346− name = "systemsettings-5.14.5.tar.xz";
344+ url = "${mirror}/stable/plasma/5.15.2/systemsettings-5.15.2.tar.xz";
345+ sha256 = "0rx3av1by04551y88y5f1lm1rvvxkxqjdjw04fjdnpx7qipv0l6l";
346+ name = "systemsettings-5.15.2.tar.xz";
347347 };
348348 };
349349 user-manager = {
350− version = "5.14.5";
350+ version = "5.15.2";
351351 src = fetchurl {
352− url = "${mirror}/stable/plasma/5.14.5/user-manager-5.14.5.tar.xz";
353− sha256 = "0aw2s029547rzx3xg9nib5w30d25978fpv7xyshxmp3z8rmzgcjv";
354− name = "user-manager-5.14.5.tar.xz";
352+ url = "${mirror}/stable/plasma/5.15.2/user-manager-5.15.2.tar.xz";
353+ sha256 = "09xlnzdsk94p95s1zms8li0q0pv8z66hkla8ns27im21rrnrz6l0";
354+ name = "user-manager-5.15.2.tar.xz";
355355 };
356356 };
357357 xdg-desktop-portal-kde = {
358− version = "5.14.5";
358+ version = "5.15.2";
359359 src = fetchurl {
360− url = "${mirror}/stable/plasma/5.14.5/xdg-desktop-portal-kde-5.14.5.tar.xz";
361− sha256 = "0h6hdk9fkf98jfjaza773k37369ayvwmwrgxn6al2pma6n07vddq";
362− name = "xdg-desktop-portal-kde-5.14.5.tar.xz";
360+ url = "${mirror}/stable/plasma/5.15.2/xdg-desktop-portal-kde-5.15.2.tar.xz";
361+ sha256 = "1zzy01lgznc7z3hz9yhbspx3zg8lala7zzcsxsly4jwx4666ixp4";
362+ name = "xdg-desktop-portal-kde-5.15.2.tar.xz";
363363 };
364364 };
365365}
pkgs/development/compilers/gcc/7/default.nix+4
@@ -48,6 +48,9 @@ let version = "7.4.0";
4848 ./riscv-no-relax.patch
4949 ]
5050 ++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch
51+ ++ optionals targetPlatform.isNetBSD [
52+ ../libstdc++-netbsd-ctypes.patch
53+ ]
5154 ++ optional noSysDirs ../no-sys-dirs.patch
5255 ++ optional (hostPlatform != buildPlatform) (fetchpatch { # XXX: Refine when this should be applied
5356 url = "https://git.busybox.net/buildroot/plain/package/gcc/7.1.0/0900-remove-selftests.patch?id=11271540bfe6adafbc133caf6b5b902a816f5f02";
@@ -302,6 +305,7 @@ stdenv.mkDerivation ({
302305 "--disable-gnu-indirect-function"
303306 ]
304307 ++ optional (targetPlatform.isAarch64) "--enable-fix-cortex-a53-843419"
308+ ++ optional targetPlatform.isNetBSD "--disable-libcilkrts"
305309 ;
306310
307311 targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
pkgs/development/compilers/gcc/libstdc++-netbsd-ctypes.patchnew file+141
@@ -0,0 +1,141 @@
1+diff --git a/libstdc++-v3/config/os/bsd/netbsd/ctype_base.h b/libstdc++-v3/config/os/bsd/netbsd/ctype_base.h
2+index ff3ec893974..21eccf9fde1 100644
3+--- a/libstdc++-v3/config/os/bsd/netbsd/ctype_base.h
4++++ b/libstdc++-v3/config/os/bsd/netbsd/ctype_base.h
5+@@ -38,40 +38,46 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
6+ /// @brief Base class for ctype.
7+ struct ctype_base
8+ {
9+- // Non-standard typedefs.
10+- typedef const unsigned char* __to_type;
11+
12+ // NB: Offsets into ctype<char>::_M_table force a particular size
13+ // on the mask type. Because of this, we don't use an enum.
14+- typedef unsigned char mask;
15+
16+ #ifndef _CTYPE_U
17+- static const mask upper = _U;
18+- static const mask lower = _L;
19+- static const mask alpha = _U | _L;
20+- static const mask digit = _N;
21+- static const mask xdigit = _N | _X;
22+- static const mask space = _S;
23+- static const mask print = _P | _U | _L | _N | _B;
24+- static const mask graph = _P | _U | _L | _N;
25+- static const mask cntrl = _C;
26+- static const mask punct = _P;
27+- static const mask alnum = _U | _L | _N;
28++ // Non-standard typedefs.
29++ typedef const unsigned char* __to_type;
30++
31++ typedef unsigned char mask;
32++
33++ static const mask upper = _U;
34++ static const mask lower = _L;
35++ static const mask alpha = _U | _L;
36++ static const mask digit = _N;
37++ static const mask xdigit = _N | _X;
38++ static const mask space = _S;
39++ static const mask print = _P | _U | _L | _N | _B;
40++ static const mask graph = _P | _U | _L | _N;
41++ static const mask cntrl = _C;
42++ static const mask punct = _P;
43++ static const mask alnum = _U | _L | _N;
44+ #else
45+- static const mask upper = _CTYPE_U;
46+- static const mask lower = _CTYPE_L;
47+- static const mask alpha = _CTYPE_U | _CTYPE_L;
48+- static const mask digit = _CTYPE_N;
49+- static const mask xdigit = _CTYPE_N | _CTYPE_X;
50+- static const mask space = _CTYPE_S;
51+- static const mask print = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N | _CTYPE_B;
52+- static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_N;
53+- static const mask cntrl = _CTYPE_C;
54+- static const mask punct = _CTYPE_P;
55+- static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_N;
56++ typedef const unsigned short* __to_type;
57++
58++ typedef unsigned short mask;
59++
60++ static const mask upper = _CTYPE_U;
61++ static const mask lower = _CTYPE_L;
62++ static const mask alpha = _CTYPE_A;
63++ static const mask digit = _CTYPE_D;
64++ static const mask xdigit = _CTYPE_X;
65++ static const mask space = _CTYPE_S;
66++ static const mask print = _CTYPE_R;
67++ static const mask graph = _CTYPE_G;
68++ static const mask cntrl = _CTYPE_C;
69++ static const mask punct = _CTYPE_P;
70++ static const mask alnum = _CTYPE_A | _CTYPE_D;
71+ #endif
72+ #if __cplusplus >= 201103L
73+- static const mask blank = space;
74++ static const mask blank = space;
75+ #endif
76+ };
77+
78+diff --git a/libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc b/libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc
79+index ed3b7cd0d6a..33358e8f5d8 100644
80+--- a/libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc
81++++ b/libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc
82+@@ -38,11 +38,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
83+
84+ // Information as gleaned from /usr/include/ctype.h
85+
86+- extern "C" const u_int8_t _C_ctype_[];
87+-
88+ const ctype_base::mask*
89+ ctype<char>::classic_table() throw()
90+- { return _C_ctype_ + 1; }
91++ { return _C_ctype_tab_ + 1; }
92+
93+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
94+ size_t __refs)
95+@@ -69,14 +67,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
96+
97+ char
98+ ctype<char>::do_toupper(char __c) const
99+- { return ::toupper((int) __c); }
100++ { return ::toupper((int)(unsigned char) __c); }
101+
102+ const char*
103+ ctype<char>::do_toupper(char* __low, const char* __high) const
104+ {
105+ while (__low < __high)
106+ {
107+- *__low = ::toupper((int) *__low);
108++ *__low = ::toupper((int)(unsigned char) *__low);
109+ ++__low;
110+ }
111+ return __high;
112+@@ -84,14 +82,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
113+
114+ char
115+ ctype<char>::do_tolower(char __c) const
116+- { return ::tolower((int) __c); }
117++ { return ::tolower((int)(unsigned char) __c); }
118+
119+ const char*
120+ ctype<char>::do_tolower(char* __low, const char* __high) const
121+ {
122+ while (__low < __high)
123+ {
124+- *__low = ::tolower((int) *__low);
125++ *__low = ::tolower((int)(unsigned char) *__low);
126+ ++__low;
127+ }
128+ return __high;
129+diff --git a/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h b/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h
130+index ace1120fba2..3234ce17c70 100644
131+--- a/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h
132++++ b/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h
133+@@ -48,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
134+ is(const char* __low, const char* __high, mask* __vec) const
135+ {
136+ while (__low < __high)
137+- *__vec++ = _M_table[*__low++];
138++ *__vec++ = _M_table[(unsigned char)*__low++];
139+ return __high;
140+ }
141+
pkgs/development/compilers/llvm/6/llvm.nix−3
@@ -14,9 +14,6 @@
1414, debugVersion ? false
1515, enableManpages ? false
1616, enableSharedLibraries ? true
17−# Mesa requires AMDGPU target
18−# BPF is used by bcc
19−, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" "BPF" ]
2017}:
2118
2219let
pkgs/development/compilers/rust/bootstrap.nix+8−8
@@ -3,16 +3,16 @@
33let
44 # Note: the version MUST be one version prior to the version we're
55 # building
6− version = "1.31.1";
6+ version = "1.32.0";
77
8− # fetch hashes by running `print-hashes.sh 1.31.1`
8+ # fetch hashes by running `print-hashes.sh 1.32.0`
99 hashes = {
10− i686-unknown-linux-gnu = "1e77e5e8c745320faad9ce6f319a77b4a2e75d972eb68a195acd081ad910ab6d";
11− x86_64-unknown-linux-gnu = "a64685535d0c457f49a8712a096a5c21564cd66fd2f7da739487f028192ebe3c";
12− armv7-unknown-linux-gnueabihf = "11c717b781a7af5bdc829894139f8f45d4c12a061f7f9e39481f21426a04eb21";
13− aarch64-unknown-linux-gnu = "29a7c6eb536fefd0ca459e48dfaea006aa8bff8a87aa82a9b7d483487033632a";
14− i686-apple-darwin = "46566dc25fcbd8badc9950b8c9f9b0faeca065b5a09cd96258e4f4b10d686aed";
15− x86_64-apple-darwin = "8398b1b303bdf0e7605d08b87070a514a4f588797c6fb3593718cb9cec233ad6";
10+ i686-unknown-linux-gnu = "4ce3a6a656669fa86606074b43fadeac7465ef48394249407e21106ed714c8db";
11+ x86_64-unknown-linux-gnu = "e024698320d76b74daf0e6e71be3681a1e7923122e3ebd03673fcac3ecc23810";
12+ armv7-unknown-linux-gnueabihf = "d7b69f60689d2905d8d3c2829b0f1cd0f86265a255ff88ea0deb601aebac6428";
13+ aarch64-unknown-linux-gnu = "60def40961728212da4b3a9767d5a2ddb748400e150a5f8a6d5aa0e1b8ba1cee";
14+ i686-apple-darwin = "76cc1280f6b61bf7cf1fddd5202cc236db7573ee05f39fc8cd12ddda8f39a7c3";
15+ x86_64-apple-darwin = "f0dfba507192f9b5c330b5984ba71d57d434475f3d62bd44a39201e36fa76304";
1616 };
1717
1818 platform =
pkgs/development/compilers/rust/default.nix+3−3
@@ -7,11 +7,11 @@
77
88let
99 rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
10− version = "1.32.0";
11− cargoVersion = "1.32.0";
10+ version = "1.33.0";
11+ cargoVersion = "1.33.0";
1212 src = fetchurl {
1313 url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
14− sha256 = "0ji2l9xv53y27xy72qagggvq47gayr5lcv2jwvmfirx029vlqnac";
14+ sha256 = "152x91mg7bz4ygligwjb05fgm1blwy2i70s2j03zc9jiwvbsh0as";
1515 };
1616in rec {
1717 rustc = callPackage ./rustc.nix {
pkgs/development/compilers/rust/patches/net-tcp-disable-tests.patch+12−20
@@ -1,8 +1,8 @@
11diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
2−index 0f60b5b3e..9b08415e7 100644
2+index 86ecb10edf..626be0a52d 100644
33--- a/src/libstd/net/tcp.rs
44+++ b/src/libstd/net/tcp.rs
5−@@ -962,6 +962,7 @@ mod tests {
5+@@ -955,6 +955,7 @@ mod tests {
66 }
77 }
88
@@ -10,7 +10,7 @@ index 0f60b5b3e..9b08415e7 100644
1010 #[test]
1111 fn listen_localhost() {
1212 let socket_addr = next_test_ip4();
13−@@ -1020,6 +1021,7 @@ mod tests {
13+@@ -1013,6 +1014,7 @@ mod tests {
1414 })
1515 }
1616
@@ -18,7 +18,7 @@ index 0f60b5b3e..9b08415e7 100644
1818 #[test]
1919 fn read_eof() {
2020 each_ip(&mut |addr| {
21−@@ -1039,6 +1041,7 @@ mod tests {
21+@@ -1032,6 +1034,7 @@ mod tests {
2222 })
2323 }
2424
@@ -26,7 +26,7 @@ index 0f60b5b3e..9b08415e7 100644
2626 #[test]
2727 fn write_close() {
2828 each_ip(&mut |addr| {
29−@@ -1065,6 +1068,7 @@ mod tests {
29+@@ -1058,6 +1061,7 @@ mod tests {
3030 })
3131 }
3232
@@ -34,7 +34,7 @@ index 0f60b5b3e..9b08415e7 100644
3434 #[test]
3535 fn multiple_connect_serial() {
3636 each_ip(&mut |addr| {
37−@@ -1087,6 +1091,7 @@ mod tests {
37+@@ -1080,6 +1084,7 @@ mod tests {
3838 })
3939 }
4040
@@ -42,7 +42,7 @@ index 0f60b5b3e..9b08415e7 100644
4242 #[test]
4343 fn multiple_connect_interleaved_greedy_schedule() {
4444 const MAX: usize = 10;
45−@@ -1123,6 +1128,7 @@ mod tests {
45+@@ -1116,6 +1121,7 @@ mod tests {
4646 }
4747
4848 #[test]
@@ -50,7 +50,7 @@ index 0f60b5b3e..9b08415e7 100644
5050 fn multiple_connect_interleaved_lazy_schedule() {
5151 const MAX: usize = 10;
5252 each_ip(&mut |addr| {
53−@@ -1401,6 +1407,7 @@ mod tests {
53+@@ -1394,6 +1400,7 @@ mod tests {
5454 }
5555
5656 #[test]
@@ -58,7 +58,7 @@ index 0f60b5b3e..9b08415e7 100644
5858 fn clone_while_reading() {
5959 each_ip(&mut |addr| {
6060 let accept = t!(TcpListener::bind(&addr));
61−@@ -1421,7 +1422,10 @@ mod tests {
61+@@ -1504,7 +1511,10 @@ mod tests {
6262
6363 // FIXME: re-enabled bitrig/openbsd tests once their socket timeout code
6464 // no longer has rounding errors.
@@ -70,7 +70,7 @@ index 0f60b5b3e..9b08415e7 100644
7070 #[test]
7171 fn timeouts() {
7272 let addr = next_test_ip4();
73−@@ -1596,6 +1603,7 @@ mod tests {
73+@@ -1591,6 +1601,7 @@ mod tests {
7474 drop(listener);
7575 }
7676
@@ -78,7 +78,7 @@ index 0f60b5b3e..9b08415e7 100644
7878 #[test]
7979 fn nodelay() {
8080 let addr = next_test_ip4();
81−@@ -1610,6 +1618,7 @@ mod tests {
81+@@ -1605,6 +1616,7 @@ mod tests {
8282 assert_eq!(false, t!(stream.nodelay()));
8383 }
8484
@@ -86,7 +86,7 @@ index 0f60b5b3e..9b08415e7 100644
8686 #[test]
8787 fn ttl() {
8888 let ttl = 100;
89−@@ -1647,6 +1656,7 @@ mod tests {
89+@@ -1642,6 +1654,7 @@ mod tests {
9090 }
9191 }
9292
@@ -94,11 +94,3 @@ index 0f60b5b3e..9b08415e7 100644
9494 #[test]
9595 fn peek() {
9696 each_ip(&mut |addr| {
97−@@ -1679,6 +1689,7 @@ mod tests {
98− }
99−
100− #[test]
101−+ #[cfg_attr(any(target_os = "linux", target_os = "macos"), ignore)]
102− fn connect_timeout_unroutable() {
103− // this IP is unroutable, so connections should always time out,
104− // provided the network is reachable to begin with.
pkgs/development/libraries/SDL/default.nix+7−9
@@ -1,8 +1,9 @@
11{ stdenv, config, libGLSupported, fetchurl, fetchpatch, pkgconfig, audiofile, libcap, libiconv
22, openglSupport ? libGLSupported, libGL, libGLU
3−, alsaSupport ? stdenv.isLinux, alsaLib
4−, x11Support ? !stdenv.isCygwin, libXext, libICE, libXrandr
5−, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
3+, alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib
4+, x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid
5+, libXext, libICE, libXrandr
6+, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux && !stdenv.hostPlatform.isAndroid, libpulseaudio
67, OpenGL, CoreAudio, CoreServices, AudioUnit, Kernel, Cocoa
78, cf-private
89}:
@@ -12,9 +13,6 @@
1213
1314with stdenv.lib;
1415
15−assert !stdenv.isDarwin -> alsaSupport || pulseaudioSupport;
16−assert openglSupport -> (stdenv.isDarwin || x11Support && libGL != null && libGLU != null);
17−
1816stdenv.mkDerivation rec {
1917 name = "SDL-${version}";
2018 version = "1.2.15";
@@ -30,18 +28,18 @@ stdenv.mkDerivation rec {
3028 outputs = [ "out" "dev" ];
3129 outputBin = "dev"; # sdl-config
3230
33− nativeBuildInputs = [ pkgconfig ];
31+ nativeBuildInputs = [ pkgconfig ]
32+ ++ optional stdenv.isLinux libcap;
3433
3534 propagatedBuildInputs = [ libiconv ]
3635 ++ optionals x11Support [ libXext libICE libXrandr ]
37− ++ optional stdenv.isLinux libcap
3836 ++ optionals openglSupport [ libGL libGLU ]
3937 ++ optional alsaSupport alsaLib
4038 ++ optional pulseaudioSupport libpulseaudio
4139 ++ optional stdenv.isDarwin Cocoa;
4240
4341 buildInputs = [ ]
44− ++ optional (!stdenv.hostPlatform.isMinGW) audiofile
42+ ++ optional (!stdenv.hostPlatform.isMinGW && alsaSupport) audiofile
4543 ++ optionals stdenv.isDarwin [
4644 AudioUnit CoreAudio CoreServices Kernel OpenGL
4745 # Needed for NSDefaultRunLoopMode symbols.
pkgs/development/libraries/SDL2/default.nix+11−10
@@ -1,12 +1,16 @@
11{ stdenv, config, libGLSupported, fetchurl, pkgconfig
22, openglSupport ? libGLSupported, libGL
3−, alsaSupport ? stdenv.isLinux, alsaLib
4−, x11Support ? !stdenv.isCygwin, libX11, xorgproto, libICE, libXi, libXScrnSaver, libXcursor, libXinerama, libXext, libXxf86vm, libXrandr
5−, waylandSupport ? stdenv.isLinux, wayland, wayland-protocols, libxkbcommon
6−, dbusSupport ? stdenv.isLinux, dbus
3+, alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib
4+, x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid
5+, libX11, xorgproto, libICE, libXi, libXScrnSaver, libXcursor
6+, libXinerama, libXext, libXxf86vm, libXrandr
7+, waylandSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
8+, wayland, wayland-protocols, libxkbcommon
9+, dbusSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, dbus
710, udevSupport ? false, udev
811, ibusSupport ? false, ibus
9−, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
12+, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux && !stdenv.hostPlatform.isAndroid
13+, libpulseaudio
1014, AudioUnit, Cocoa, CoreAudio, CoreServices, ForceFeedback, OpenGL
1115, audiofile, cf-private, libiconv
1216}:
@@ -16,9 +20,6 @@
1620
1721with stdenv.lib;
1822
19−assert !stdenv.isDarwin -> alsaSupport || pulseaudioSupport;
20−assert openglSupport -> (stdenv.isDarwin || x11Support && libGL != null);
21−
2223stdenv.mkDerivation rec {
2324 name = "SDL2-${version}";
2425 version = "2.0.9";
@@ -44,14 +45,14 @@ stdenv.mkDerivation rec {
4445 ++ optionals x11Support [ libX11 xorgproto ];
4546
4647 dlopenBuildInputs = [ ]
47− ++ optional alsaSupport alsaLib
48+ ++ optionals alsaSupport [ alsaLib audiofile ]
4849 ++ optional dbusSupport dbus
4950 ++ optional pulseaudioSupport libpulseaudio
5051 ++ optional udevSupport udev
5152 ++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
5253 ++ optionals x11Support [ libICE libXi libXScrnSaver libXcursor libXinerama libXext libXrandr libXxf86vm ];
5354
54− buildInputs = [ audiofile libiconv ]
55+ buildInputs = [ libiconv ]
5556 ++ dlopenBuildInputs
5657 ++ optional ibusSupport ibus
5758 ++ optionals stdenv.isDarwin [
pkgs/development/libraries/cairo/default.nix+3
@@ -40,6 +40,9 @@ in stdenv.mkDerivation rec {
4040
4141 nativeBuildInputs = [
4242 pkgconfig
43+ ];
44+
45+ buildInputs = [
4346 libiconv
4447 libintl
4548 ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
pkgs/development/libraries/glib/default.nix+2−22
@@ -46,7 +46,7 @@ let
4646 '';
4747
4848 binPrograms = optional (!stdenv.isDarwin) "gapplication" ++ [ "gdbus" "gio" "gsettings" ];
49− version = "2.58.2";
49+ version = "2.58.3";
5050in
5151
5252stdenv.mkDerivation rec {
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
5454
5555 src = fetchurl {
5656 url = "mirror://gnome/sources/glib/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
57− sha256 = "0jrxfm4gn1qz3y1450z709v74ys2bkjr8yffkgy106kgagb4xcn7";
57+ sha256 = "10blprf5djbwxq8dqmjvcsdc9vqz63rl0ammfbd2b2p8cwbw6hwg";
5858 };
5959
6060 patches = optional stdenv.isDarwin ./darwin-compilation.patch
@@ -66,26 +66,6 @@ stdenv.mkDerivation rec {
6666 ./schema-override-variable.patch
6767 # Require substituteInPlace in postPatch
6868 ./fix-gio-launch-desktop-path.patch
69− # https://gitlab.gnome.org/GNOME/glib/issues/1626
70− # https://gitlab.gnome.org/GNOME/glib/merge_requests/557
71− (fetchpatch {
72− url = https://gitlab.gnome.org/GNOME/glib/commit/85c4031696add9797e2334ced20678edcd96c869.patch;
73− sha256 = "1hmyvhx89wip2a26gk1rvd87k0pjfia51s0ysybjyzf5f1pzw877";
74− })
75− # https://gitlab.gnome.org/GNOME/glib/issues/1645
76− (fetchpatch {
77− url = https://gitlab.gnome.org/GNOME/glib/commit/e695ca9f310c393d8f39694f77471dbcb06daa9e.diff;
78− sha256 = "1jkb2bdnni0xdyn86xrx9z0fdwxrm7y08lagz8x5x01wglkwa26w";
79− })
80− # https://gitlab.gnome.org/GNOME/glib/issues/1643
81− (fetchpatch {
82− url = https://gitlab.gnome.org/GNOME/glib/commit/c792e5adaa8ae3a45e6ff3ff71168ad8d040a0d4.patch;
83− sha256 = "022x70qfn5wlv5gz3nlg0bwiwjxcd7l11j3qvbms2y8d1ffh5rfd";
84− })
85− (fetchpatch {
86− url = https://gitlab.gnome.org/GNOME/glib/commit/30ccbc386026cecac6ef3a77d8fa4f3c24ac68d7.patch;
87− sha256 = "04y3pxgzlx92cppwibx4rlsyvwxb37aq52x2lr6ajfgykv2nzpr3";
88− })
8969 ];
9070
9171 outputs = [ "bin" "out" "dev" "devdoc" ];
pkgs/development/libraries/gnutls/3.6.nix+2−2
@@ -1,11 +1,11 @@
11{ callPackage, fetchurl, ... } @ args:
22
33callPackage ./generic.nix (args // rec {
4− version = "3.6.6";
4+ version = "3.6.7";
55
66 src = fetchurl {
77 url = "mirror://gnupg/gnutls/v3.6/gnutls-${version}.tar.xz";
8− sha256 = "19rcfgsfxb01cyz8jxmmgkjqc7y5s97amajzyknk1i1amywcm6mv";
8+ sha256 = "1ql8l6l5bxks2pgpwb1602zc0j6ivhpy27hdfc49h8xgbanhjd2v";
99 };
1010
1111 # Skip some tests:
pkgs/development/libraries/gtk+/3.x.nix+7
@@ -40,6 +40,13 @@ stdenv.mkDerivation rec {
4040 url = https://github.com/gnome/gtk/compare/3.24.5..47e4a111c2666961ab47b6df48460d3c9075d92d.patch;
4141 sha256 = "0ky4kmgcywg0qlwndn9aw083bkwnkr49bnlsz0ii93fxzvbiqglr";
4242 })
43+ (fetchpatch {
44+ # https://gitlab.gnome.org/GNOME/gtk/merge_requests/505 already merged
45+ # but isn't in 3.24.5
46+ name = "export-missing-symbols.patch";
47+ url = https://gitlab.gnome.org/GNOME/gtk/commit/95c0f07295fd300ab7f3416a39290ae33585ea6c.patch;
48+ sha256 = "0z9w7f39xcn1cbcd8jhx731vq64nvi5q6kyc86bq8r00daysjwnl";
49+ })
4350 ] ++ optionals stdenv.isDarwin [
4451 # X11 module requires <gio/gdesktopappinfo.h> which is not installed on Darwin
4552 # let’s drop that dependency in similar way to how other parts of the library do it
pkgs/development/libraries/libarchive/default.nix+15
@@ -17,6 +17,21 @@ stdenv.mkDerivation rec {
1717 sha256 = "0bhfncid058p7n1n8v29l6wxm3mhdqfassscihbsxfwz3iwb2zms";
1818 };
1919
20+ patches = [
21+ (fetchpatch {
22+ # details: https://github.com/libarchive/libarchive/pull/1105
23+ name = "cve-2018-1000877.diff"; # CVE-2018-1000877..80
24+ url = "https://github.com/libarchive/libarchive/pull/1105.diff";
25+ sha256 = "0mxcawfdy9m40mykzwhkl39a6vnh4ypgy0ipcz74qm4bi72x0gyf";
26+ })
27+ (fetchpatch {
28+ # details: https://github.com/libarchive/libarchive/pull/1120
29+ name = "cve-2019-1000019_cve-2019-1000020.diff";
30+ url = "https://github.com/libarchive/libarchive/pull/1120.diff";
31+ sha256 = "1mgx92v8hm7hw9j34nbfriqfkxshh3cy25rhavr7kl7lz4x5a6g4";
32+ })
33+ ];
34+
2035 outputs = [ "out" "lib" "dev" ];
2136
2237 nativeBuildInputs = [ pkgconfig ];
pkgs/development/libraries/libglvnd/default.nix+5−1
@@ -38,7 +38,11 @@ in stdenv.mkDerivation rec {
3838 url = "https://github.com/NVIDIA/libglvnd/commit/0177ade40262e31a80608a8e8e52d3da7163dccf.patch";
3939 sha256 = "1rnz5jw2gvx4i1lcp0k85jz9xgr3dgzsd583m2dlxkaf2a09j89d";
4040 })
41− ];
41+ ] ++ stdenv.lib.optional stdenv.isDarwin
42+ (fetchpatch {
43+ url = "https://github.com/NVIDIA/libglvnd/commit/294ccb2f49107432567e116e13efac586580a4cc.patch";
44+ sha256 = "01339wg27cypv93221rhk3885vxbsg8kvbfyia77jmjdcnwrdwm2";
45+ });
4246 outputs = [ "out" "dev" ];
4347
4448 passthru = { inherit driverLink; };
pkgs/development/libraries/libvdpau/default.nix+3−3
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "libvdpau-${version}";
5− version = "1.1.1";
5+ version = "1.2";
66
77 src = fetchurl {
8− url = "https://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
9− sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
8+ url = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/14b620084c027d546fa0b3f083b800c6/${name}.tar.bz2";
9+ sha256 = "6a499b186f524e1c16b4f5b57a6a2de70dfceb25c4ee546515f26073cd33fa06";
1010 };
1111
1212 outputs = [ "out" "dev" ];
pkgs/development/libraries/mesa-glu/default.nix+1
@@ -22,5 +22,6 @@ stdenv.mkDerivation rec {
2222 homepage = https://cgit.freedesktop.org/mesa/glu/;
2323 license = stdenv.lib.licenses.sgi-b-20;
2424 platforms = stdenv.lib.platforms.unix;
25+ broken = stdenv.hostPlatform.isAndroid;
2526 };
2627}
pkgs/development/libraries/openssl/default.nix+2−2
@@ -132,8 +132,8 @@ in {
132132 };
133133
134134 openssl_1_1 = common {
135− version = "1.1.1a";
136− sha256 = "0hcz7znzznbibpy3iyyhvlqrq44y88plxwdj32wjzgbwic7i687w";
135+ version = "1.1.1b";
136+ sha256 = "0jza8cmznnyiia43056dij1jdmz62dx17wsn0zxksh9h6817nmaw";
137137 patches = [
138138 ./1.1/nix-ssl-cert-file.patch
139139
pkgs/development/libraries/pixman/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "pixman-${version}";
5− version = "0.36.0";
5+ version = "0.38.0";
66
77 src = fetchurl {
88 url = "mirror://xorg/individual/lib/${name}.tar.bz2";
9− sha256 = "1p40fygy9lcn6ypkzh14azksi570brcpr3979bjpff8qk76c14px";
9+ sha256 = "1a1nnkjv0rqdj26847r0saly0kzckjfp4y3ly30bvpjxi7vy6s5p";
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
pkgs/development/libraries/qt-5/modules/qtbase.nix−4
@@ -301,7 +301,6 @@ stdenv.mkDerivation {
301301 then
302302 [
303303 "-platform macx-clang"
304− "-no-use-gold-linker"
305304 "-no-fontconfig"
306305 "-qt-freetype"
307306 "-qt-libpng"
@@ -329,9 +328,6 @@ stdenv.mkDerivation {
329328 "-glib"
330329 "-system-libjpeg"
331330 "-system-libpng"
332− # gold linker of binutils 2.28 generates duplicate symbols
333− # TODO: remove for newer version of binutils
334− "-no-use-gold-linker"
335331 ]
336332 ++ lib.optional withGtk3 "-gtk"
337333 ++ lib.optional (compareVersion "5.9.0" >= 0) "-inotify"
pkgs/development/libraries/sqlite/analyzer.nix+3−3
@@ -6,11 +6,11 @@ in
66
77stdenv.mkDerivation rec {
88 name = "sqlite-analyzer-${version}";
9− version = "3.26.0";
9+ version = "3.27.2";
1010
1111 src = assert version == sqlite.version; fetchurl {
12− url = "https://sqlite.org/2018/sqlite-src-${archiveVersion version}.zip";
13− sha256 = "0ysgi2jrl348amdfifsl3cx90d04bijm4pn4xnvivmi3m1dq4hp0";
12+ url = "https://sqlite.org/2019/sqlite-src-${archiveVersion version}.zip";
13+ sha256 = "02nz1y22wyb8101d9y6wfdrvp855wvch67js12p5y3riya345g8m";
1414 };
1515
1616 nativeBuildInputs = [ unzip ];
pkgs/development/libraries/sqlite/default.nix+3−3
@@ -10,12 +10,12 @@ in
1010
1111stdenv.mkDerivation rec {
1212 name = "sqlite-${version}";
13− version = "3.26.0";
13+ version = "3.27.2";
1414
1515 # NB! Make sure to update analyzer.nix src (in the same directory).
1616 src = fetchurl {
17− url = "https://sqlite.org/2018/sqlite-autoconf-${archiveVersion version}.tar.gz";
18− sha256 = "0pdzszb4sp73hl36siiv3p300jvfvbcdxi2rrmkwgs6inwznmajx";
17+ url = "https://sqlite.org/2019/sqlite-autoconf-${archiveVersion version}.tar.gz";
18+ sha256 = "0vpgwszs19pwks2b4dhqwa0n6q5sx6pn1s7rngyyrd98xa2rxhsh";
1919 };
2020
2121 outputs = [ "bin" "dev" "out" ];
pkgs/development/python-modules/numpy/default.nix+2−2
@@ -16,12 +16,12 @@ let
1616 };
1717in buildPythonPackage rec {
1818 pname = "numpy";
19− version = "1.16.1";
19+ version = "1.16.2";
2020
2121 src = fetchPypi {
2222 inherit pname version;
2323 extension = "zip";
24− sha256 = "31d3fe5b673e99d33d70cfee2ea8fe8dccd60f265c3ed990873a88647e3dd288";
24+ sha256 = "1c4inssky16p6ab63n1gass6dik1dzxrp3y7kmxbdq6xg4w2wsbc";
2525 };
2626
2727 disabled = isPyPy;
pkgs/development/tools/build-managers/waf/default.nix+2−2
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 name = "waf-${version}";
5− version = "2.0.13";
5+ version = "2.0.14";
66
77 src = fetchFromGitLab {
88 owner = "ita1024";
99 repo = "waf";
1010 rev = name;
11− sha256 = "1r4nyxpf07w98bx9zx0xii97rwsc27s6898xi9ph25p0n6hsdxxg";
11+ sha256 = "006a4wb9i569pahs8ji86hrv58g2hm8xikgchnll3bdqgxllhnrs";
1212 };
1313
1414 buildInputs = [ python ensureNewerSourcesForZipFilesHook ];
pkgs/os-specific/bsd/netbsd/builder.shnew file+122
@@ -0,0 +1,122 @@
1+source $stdenv/setup
2+
3+# NetBSD makefiles should be able to detect this
4+# but without they end up using gcc on Darwin stdenv
5+addMakeFlags() {
6+ export setOutputFlags=
7+
8+ export LIBCRT0=
9+ export LIBCRTI=
10+ export LIBCRTEND=
11+ export LIBCRTBEGIN=
12+ export LIBC=
13+ export LIBUTIL=
14+ export LIBSSL=
15+ export LIBCRYPTO=
16+ export LIBCRYPT=
17+ export LIBCURSES=
18+ export LIBTERMINFO=
19+ export LIBM=
20+ export LIBL=
21+
22+ export _GCC_CRTBEGIN=
23+ export _GCC_CRTBEGINS=
24+ export _GCC_CRTEND=
25+ export _GCC_CRTENDS=
26+ export _GCC_LIBGCCDIR=
27+ export _GCC_CRTI=
28+ export _GCC_CRTN=
29+ export _GCC_CRTDIR=
30+
31+ # Definitions passed to share/mk/*.mk. Should be pretty simple -
32+ # eventually maybe move it to a configure script.
33+ export DESTDIR=
34+ export USETOOLS=never
35+ export NOCLANGERROR=yes
36+ export NOGCCERROR=yes
37+ export LEX=flex
38+ export MKUNPRIVED=yes
39+ export EXTERNAL_TOOLCHAIN=yes
40+
41+ export INSTALL_FILE="install -U -c"
42+ export INSTALL_DIR="xinstall -U -d"
43+ export INSTALL_LINK="install -U -l h"
44+ export INSTALL_SYMLINK="install -U -l s"
45+
46+ makeFlags="MACHINE=$MACHINE $makeFlags"
47+ makeFlags="MACHINE_ARCH=$MACHINE_ARCH $makeFlags"
48+ makeFlags="AR=$AR $makeFlags"
49+ makeFlags="CC=$CC $makeFlags"
50+ makeFlags="CPP=$CPP $makeFlags"
51+ makeFlags="CXX=$CXX $makeFlags"
52+ makeFlags="LD=$LD $makeFlags"
53+ makeFlags="STRIP=$STRIP $makeFlags"
54+
55+ makeFlags="BINDIR=${!outputBin}/bin $makeFlags"
56+ makeFlags="LIBDIR=${!outputLib}/lib $makeFlags"
57+ makeFlags="SHLIBDIR=${!outputLib}/lib $makeFlags"
58+ makeFlags="MANDIR=${!outputMan}/share/man $makeFlags"
59+ makeFlags="INFODIR=${!outputInfo}/share/info $makeFlags"
60+ makeFlags="DOCDIR=${!outputDoc}/share/doc $makeFlags"
61+ makeFlags="LOCALEDIR=${!outputLib}/share/locale $makeFlags"
62+
63+ # Parallel building. Needs the space.
64+ makeFlags="-j $NIX_BUILD_CORES $makeFlags"
65+}
66+
67+setNetBSDSourceDir() {
68+ # merge together all extra paths
69+ # there should be a better way to do this
70+ sourceRoot=$PWD/$sourceRoot
71+ export NETBSDSRCDIR=$sourceRoot
72+ export BSDSRCDIR=$NETBSDSRCDIR
73+ export _SRC_TOP_=$NETBSDSRCDIR
74+ chmod -R u+w $sourceRoot
75+ for path in $extraPaths; do
76+ cd $path
77+ find . -type d -exec mkdir -p $sourceRoot/\{} \;
78+ find . -type f -exec cp -pr \{} $sourceRoot/\{} \;
79+ chmod -R u+w $sourceRoot
80+ done
81+
82+ cd $sourceRoot
83+ if [ -d "$NETBSD_PATH" ]
84+ then sourceRoot=$sourceRoot/$NETBSD_PATH
85+ fi
86+}
87+
88+includesPhase() {
89+ if [ -z "${skipIncludesPhase:-}" ]; then
90+
91+ local flagsArray=(
92+ $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"}
93+ DESTDIR=${!outputInclude} includes
94+ )
95+
96+ echoCmd 'includes flags' "${flagsArray[@]}"
97+ make ${makefile:+-f $makefile} "${flagsArray[@]}"
98+
99+ moveUsrDir
100+
101+ fi
102+}
103+
104+moveUsrDir() {
105+ if [ -d $prefix ]; then
106+ # Remove lingering /usr references
107+ if [ -d $prefix/usr ]; then
108+ cd $prefix/usr
109+ find . -type d -exec mkdir -p $out/\{} \;
110+ find . \( -type f -o -type l \) -exec mv \{} $out/\{} \;
111+ fi
112+
113+ find $prefix -type d -empty -delete
114+ fi
115+}
116+
117+postUnpackHooks+=(setNetBSDSourceDir)
118+preConfigureHooks+=(addMakeFlags)
119+preInstallHooks+=(includesPhase)
120+fixupOutputHooks+=(moveUsrDir)
121+
122+genericBuild
pkgs/os-specific/bsd/netbsd/default.nix+420−310
@@ -1,272 +1,83 @@
1−{ stdenv, fetchcvs, lib, groff, mandoc, zlib, buildPackages
2−, yacc, flex, libressl, bash, less, writeText }:
1+{ stdenv, stdenvNoCC, fetchcvs, lib, groff, mandoc, zlib, yacc, flex, bash
2+, writeText, buildPackages, splicePackages, symlinkJoin }:
33
44let
5− inherit (lib) optionalString replaceStrings;
6− inherit (stdenv) hostPlatform;
7−
85 fetchNetBSD = path: version: sha256: fetchcvs {
96 cvsRoot = ":pserver:anoncvs@anoncvs.NetBSD.org:/cvsroot";
107 module = "src/${path}";
118 inherit sha256;
12− tag = "netbsd-${builtins.replaceStrings ["."] ["-"] version}-RELEASE";
9+ tag = "netbsd-${lib.replaceStrings ["."] ["-"] version}-RELEASE";
1310 };
1411
15− # Needed to support cross correctly. Splicing only happens when we
16− # do callPackage, but sense everything is here, it needs to be done
17− # by hand. All native build inputs should come from here.
18− nbBuildPackages = buildPackages.netbsd;
19−
20− MACHINE_ARCH = {
21− "i686" = "i386";
22− }.${hostPlatform.parsed.cpu.name} or hostPlatform.parsed.cpu.name;
12+ # Splice packages so we get the correct package when using
13+ # nativeBuildInputs...
14+ nbSplicedPackages = splicePackages {
15+ pkgsBuildBuild = buildPackages.buildPackages.netbsd;
16+ pkgsBuildHost = buildPackages.netbsd;
17+ pkgsBuildTarget = {};
18+ pkgsHostHost = {};
19+ pkgsHostTarget = netbsd;
20+ pkgsTargetTarget = {};
21+ };
2322
24− MACHINE = {
25− "x86_64" = "amd64";
26− "aarch64" = "evbarm64";
27− "i686" = "i386";
28− }.${hostPlatform.parsed.cpu.name} or hostPlatform.parsed.cpu.name;
23+ netbsd = with nbSplicedPackages; {
2924
30− netBSDDerivation = attrs: stdenv.mkDerivation ((rec {
31− name = "netbsd-${attrs.pname or (baseNameOf attrs.path)}-${attrs.version}";
25+ mkDerivation = lib.makeOverridable (attrs: let
26+ stdenv' = if attrs.noCC or false then stdenvNoCC else stdenv;
27+ in stdenv'.mkDerivation ({
28+ name = "${attrs.pname or (baseNameOf attrs.path)}-netbsd-${attrs.version}";
3229 src = attrs.src or fetchNetBSD attrs.path attrs.version attrs.sha256;
3330
3431 extraPaths = [ ];
35− setOutputFlags = false;
36−
37− nativeBuildInputs = [ yacc flex mandoc groff
38− nbBuildPackages.makeMinimal
39− nbBuildPackages.stat
40− nbBuildPackages.install
41− nbBuildPackages.tsort
42− nbBuildPackages.lorder ];
43− buildInputs = [ nbPackages.compat ];
44− installFlags = [ "includes" ];
45− # TODO: eventually move this to a make.conf
46− makeFlags = [
47− "MACHINE=${MACHINE}"
48− "MACHINE_ARCH=${MACHINE_ARCH}"
49−
50− "AR=${stdenv.cc.targetPrefix}ar"
51− "CC=${stdenv.cc.targetPrefix}cc"
52− "CPP=${stdenv.cc.targetPrefix}cpp"
53− "CXX=${stdenv.cc.targetPrefix}c++"
54− "LD=${stdenv.cc.targetPrefix}ld"
55− "STRIP=${stdenv.cc.targetPrefix}strip"
56− ] ++ (attrs.makeFlags or []);
57−
58− # Definitions passed to share/mk/*.mk. Should be pretty simple -
59− # eventually maybe move it to a configure script.
60− # TODO: don’t rely on DESTDIR, instead use prefix
61− DESTDIR = "$(out)";
62− TOOLDIR = "$(out)";
63− USETOOLS = "never";
64− NOCLANGERROR = "yes";
65− NOGCCERROR = "yes";
66− LEX = "flex";
67− MKUNPRIVED = "yes";
68− HOST_SH = "${buildPackages.bash}/bin/sh";
32+
33+ nativeBuildInputs = [ makeMinimal install tsort lorder mandoc groff stat ];
34+ buildInputs = [ compat ];
35+ # depsBuildBuild = [ buildPackages.stdenv.cc ];
36+
6937 OBJCOPY = if stdenv.isDarwin then "true" else "objcopy";
70− RPCGEN_CPP = "${stdenv.cc.targetPrefix}cpp";
71−
72− MKPIC = if stdenv.isDarwin then "no" else "yes";
73− MKRELRO = if stdenv.isDarwin then "no" else "yes";
74−
75− INSTALL_FILE = "install -U -c";
76− INSTALL_DIR = "xinstall -U -d";
77− INSTALL_LINK = "install -U -l h";
78− INSTALL_SYMLINK = "install -U -l s";
79−
80− HOST_CC = "${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc";
81− HOST_CXX = "${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}c++";
82−
83− # libs will be provided by cc-wrapper
84− LIBCRT0 = "";
85− LIBCRTI = "";
86− LIBCRTEND = "";
87− LIBCRTBEGIN = "";
88− LIBC = "";
89− LIBUTIL = "";
90− LIBSSL = "";
91− LIBCRYPTO = "";
92− LIBCRYPT = "";
93− LIBCURSES = "";
94− LIBTERMINFO = "";
95− LIBM = "";
96− LIBL = "";
97− _GCC_CRTBEGIN = "";
98− _GCC_CRTBEGINS = "";
99− _GCC_CRTEND = "";
100− _GCC_CRTENDS = "";
101− _GCC_LIBGCCDIR = "";
102− _GCC_CRTI = "";
103− _GCC_CRTDIR = "";
104− _GCC_CRTN = "";
105−
106− "LIBDO.terminfo" = "_external";
107− "LIBDO.curses" = "_external";
108−
109− # all dirs will be prefixed with DESTDIR
110− BINDIR = "/bin";
111− LIBDIR = "/lib";
112− SHLIBDIR = "/lib";
113− INCSDIR = "/include";
114− MANDIR = "/share/man";
115− INFODIR = "/share/info";
116− DOCDIR = "/share/doc";
117− LOCALEDIR = "/share/locale";
118− X11BINDIR = "/bin";
119− X11USRLIBDIR = "/lib";
120− X11MANDIR = "/share/man";
121−
122− # NetBSD makefiles should be able to detect this
123− # but without they end up using gcc on Darwin stdenv
124− preConfigure = ''
125− export HAVE_${if stdenv.cc.isClang then "LLVM" else "GCC"}=${lib.head (lib.splitString "." (lib.getVersion stdenv.cc.cc))}
126−
127− # Parallel building. Needs the space.
128− export makeFlags+=" -j $NIX_BUILD_CORES"
129− '';
38+ HOST_SH = "${buildPackages.bash}/bin/sh";
13039
131− postUnpack = ''
132− # merge together all extra paths
133− # there should be a better way to do this
134− sourceRoot=$PWD/$sourceRoot
135− export NETBSDSRCDIR=$sourceRoot
136− export BSDSRCDIR=$NETBSDSRCDIR
137− export _SRC_TOP_=$NETBSDSRCDIR
138− chmod -R u+w $sourceRoot
139− for path in $extraPaths; do
140− cd $path
141− find . -type d -exec mkdir -p $sourceRoot/\{} \;
142− find . -type f -exec cp -pr \{} $sourceRoot/\{} \;
143− chmod -R u+w $sourceRoot
144− done
145−
146− cd $sourceRoot
147− if [ -d ${attrs.path} ]
148− then sourceRoot=$sourceRoot/${attrs.path}
149− fi
150− '';
40+ MACHINE_ARCH = {
41+ "i686" = "i386";
42+ }.${stdenv'.hostPlatform.parsed.cpu.name}
43+ or stdenv'.hostPlatform.parsed.cpu.name;
15144
152− preFixup = ''
153− # Remove lingering /usr references
154− if [ -d $out/usr ]; then
155− cd $out/usr
156− find . -type d -exec mkdir -p $out/\{} \;
157− find . -type f -exec mv \{} $out/\{} \;
158− fi
45+ MACHINE = {
46+ "x86_64" = "amd64";
47+ "aarch64" = "evbarm64";
48+ "i686" = "i386";
49+ }.${stdenv'.hostPlatform.parsed.cpu.name}
50+ or stdenv'.hostPlatform.parsed.cpu.name;
15951
160− find $out -type d -empty -delete
161− '';
52+ AR = "${stdenv'.cc.targetPrefix or ""}ar";
53+ CC = "${stdenv'.cc.targetPrefix or ""}cc";
54+ CPP = if (stdenv'.cc.isClang or false) then "clang-cpp" else "cpp";
55+ CXX = "${stdenv'.cc.targetPrefix or ""}c++";
56+ LD = "${stdenv'.cc.targetPrefix or ""}ld";
57+ STRIP = "${stdenv'.cc.targetPrefix or ""}strip";
58+
59+ NETBSD_PATH = attrs.path;
60+
61+ builder = ./builder.sh;
16262
16363 meta = with lib; {
16464 maintainers = with maintainers; [matthewbauer];
16565 platforms = platforms.unix;
16666 license = licenses.bsd2;
16767 };
168− }) // (removeAttrs attrs ["makeFlags"]));
169−
170− libutil = netBSDDerivation {
171− path = "lib/libutil";
172− version = "8.0";
173− sha256 = "077syyxd303m4x7avs5nxzk4c9n13d5lyk5aicsacqjvx79qrk3i";
174− extraPaths = [
175− (fetchNetBSD "common/lib/libutil" "8.0" "0q3ixrf36lip1dx0gafs0a03qfs5cs7n0myqq7af4jpjd6kh1831")
176− ];
177− };
178−
179− libc = netBSDDerivation {
180− path = "lib/libc";
181− version = "8.0";
182− sha256 = "0lgbc58qgn8kwm3l011x1ml1kgcf7jsgq7hbf0hxhlbvxq5bljl3";
183− extraPaths = [
184− (fetchNetBSD "common/lib/libc" "8.0" "1kbhj0vxixvdy9fvsr5y70ri4mlkmim1v9m98sqjlzc1vdiqfqc8")
185− ];
186− };
187−
188− make = netBSDDerivation {
189− path = "usr.bin/make";
190− sha256 = "103643qs3w5kiahir6cca2rkm5ink81qbg071qyzk63qvspfq10c";
191− version = "8.0";
192− postPatch = ''
193− # make needs this to pick up our sys make files
194− export NIX_CFLAGS_COMPILE+=" -D_PATH_DEFSYSPATH=\"$out/share/mk\""
195−
196− substituteInPlace $NETBSDSRCDIR/share/mk/bsd.prog.mk \
197− --replace '-Wl,-dynamic-linker=''${_SHLINKER}' "" \
198− --replace '-Wl,-rpath,''${SHLIBDIR}' ""
199− substituteInPlace $NETBSDSRCDIR/share/mk/bsd.lib.mk \
200− --replace '_INSTRANLIB=''${empty(PRESERVE):?-a "''${RANLIB} -t":}' '_INSTRANLIB='
201− substituteInPlace $NETBSDSRCDIR/share/mk/bsd.kinc.mk \
202− --replace /bin/rm rm
203− '' + lib.optionalString stdenv.isDarwin ''
204− substituteInPlace $NETBSDSRCDIR/share/mk/bsd.sys.mk \
205− --replace '-Wl,--fatal-warnings' "" \
206− --replace '-Wl,--warn-shared-textrel' ""
207− substituteInPlace $NETBSDSRCDIR/share/mk/bsd.lib.mk \
208− --replace '-Wl,-soname,''${_LIB}.so.''${SHLIB_SOVERSION}' "" \
209− --replace '-Wl,--whole-archive' "" \
210− --replace '-Wl,--no-whole-archive' "" \
211− --replace '-Wl,--warn-shared-textrel' "" \
212− --replace '-Wl,-Map=''${_LIB}.so.''${SHLIB_SOVERSION}.map' "" \
213− --replace '-Wl,-rpath,''${SHLIBDIR}' ""
214− '';
215− postInstall = ''
216− make -C $NETBSDSRCDIR/share/mk FILESDIR=/share/mk install
217− '';
218− extraPaths = [
219− (fetchNetBSD "share/mk" "8.0" "033q4w3rmvwznz6m7fn9xcf13chyhwwl8ijj3a9mrn80fkwm55qs")
220− ];
221− };
222−
223− libcurses = netBSDDerivation {
224− path = "lib/libcurses";
225− version = "8.0";
226− sha256 = "0azhzh1910v24dqx45zmh4z4dl63fgsykajrbikx5xfvvmkcq7xs";
227− buildInputs = [ nbPackages.libterminfo ];
228− makeFlags = [ "INCSDIR=/include" ];
229− NIX_CFLAGS_COMPILE = [
230− "-D__scanflike(a,b)="
231− "-D__va_list=va_list"
232− "-D__warn_references(a,b)="
233− ] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=";
234− propagatedBuildInputs = [ nbPackages.compat ];
235− MKDOC = "no"; # missing vfontedpr
236− postPatch = ''
237− substituteInPlace printw.c \
238− --replace "funopen2(win, NULL, winwrite, NULL, NULL, NULL)" NULL \
239− --replace "__strong_alias(vwprintw, vw_printw)" 'extern int vwprintw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_printw")));'
240− substituteInPlace scanw.c \
241− --replace "__strong_alias(vwscanw, vw_scanw)" 'extern int vwscanw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_scanw")));'
242− '';
243− };
244−
245− libedit = netBSDDerivation {
246− path = "lib/libedit";
247− buildInputs = [ nbPackages.libterminfo libcurses ];
248− propagatedBuildInputs = [ nbPackages.compat ];
249− makeFlags = [ "INCSDIR=/include" ];
250− postPatch = ''
251− sed -i '1i #undef bool_t' el.h
252− substituteInPlace config.h \
253− --replace "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" ""
254− '';
255− NIX_CFLAGS_COMPILE = [
256− "-D__noinline="
257− "-D__scanflike(a,b)="
258− "-D__va_list=va_list"
259− ];
260− version = "8.0";
261− sha256 = "0pmqh2mkfp70bwchiwyrkdyq9jcihx12g1awd6alqi9bpr3f9xmd";
262− };
263−
264− nbPackages = rec {
68+ } // lib.optionalAttrs (stdenv'.cc.isClang or false) {
69+ HAVE_LLVM = lib.head (lib.splitString "." (lib.getVersion stdenv'.cc.cc));
70+ } // lib.optionalAttrs (stdenv'.cc.isGNU or false) {
71+ HAVE_GCC = lib.head (lib.splitString "." (lib.getVersion stdenv'.cc.cc));
72+ } // lib.optionalAttrs (attrs.headersOnly or false) {
73+ installPhase = "includesPhase";
74+ dontBuild = true;
75+ } // attrs));
26576
26677 ##
267− ## BOOTSTRAPPING
78+ ## START BOOTSTRAPPING
26879 ##
269− makeMinimal = netBSDDerivation rec {
80+ makeMinimal = mkDerivation rec {
27081 path = "tools/make";
27182 sha256 = "1xbzfd4i7allrkk1if74a8ymgpizyj0gkvdigzzj37qar7la7nc1";
27283 version = "8.0";
@@ -274,6 +85,8 @@ let
27485 buildInputs = [];
27586 nativeBuildInputs = [];
27687
88+ skipIncludesPhase = true;
89+
27790 postPatch = ''
27891 patchShebangs configure
27992 ${make.postPatch}
@@ -298,7 +111,7 @@ let
298111 extraPaths = [ make.src ] ++ make.extraPaths;
299112 };
300113
301− compat = if hostPlatform.isNetBSD then null else netBSDDerivation rec {
114+ compat = if stdenv.hostPlatform.isNetBSD then stdenv else mkDerivation rec {
302115 path = "tools/compat";
303116 sha256 = "050449lq5gpxqsripdqip5ks49g5ypjga188nd3ss8dg1zf7ydz3";
304117 version = "8.0";
@@ -309,13 +122,15 @@ let
309122 ];
310123
311124 # override defaults to prevent infinite recursion
312− nativeBuildInputs = [ nbBuildPackages.makeMinimal ];
125+ nativeBuildInputs = [ makeMinimal ];
313126 buildInputs = [ zlib ];
314127
315128 # temporarily use gnuinstall for bootstrapping
316129 # bsdinstall will be built later
317− makeFlags = [ "INSTALL=${buildPackages.coreutils}/bin/install" ];
318− installFlags = [];
130+ makeFlags = [
131+ "INSTALL=${buildPackages.coreutils}/bin/install"
132+ "TOOLDIR=$(out)"
133+ ];
319134 RENAME = "-D";
320135
321136 patches = [ ./compat.patch ];
@@ -352,15 +167,6 @@ let
352167 substitute ${./libbsd-overlay.pc} $out/lib/pkgconfig/libbsd-overlay.pc \
353168 --subst-var-by out $out \
354169 --subst-var-by version ${version}
355−
356− # Remove lingering /usr references
357− if [ -d $out/usr ]; then
358− cd $out/usr
359− find . -type d -exec mkdir -p $out/\{} \;
360− find . -type f -exec mv \{} $out/\{} \;
361− fi
362−
363− find $out -type d -empty -delete
364170 '';
365171 extraPaths = [ libc.src libutil.src
366172 (fetchNetBSD "include" "8.0" "128m77k16i7frvk8kifhmxzk7a37m7z1s0bbmja3ywga6sx6v6sq")
@@ -369,19 +175,20 @@ let
369175 ] ++ libutil.extraPaths ++ libc.extraPaths;
370176 };
371177
372− # HACK to ensure parent directories exist. This emulates GNU
178+ # HACK: to ensure parent directories exist. This emulates GNU
373179 # install’s -D option. No alternative seems to exist in BSD install.
374180 install = let binstall = writeText "binstall" ''
375181 #!${stdenv.shell}
376182 for last in $@; do true; done
377183 mkdir -p $(dirname $last)
378184 xinstall "$@"
379− ''; in netBSDDerivation {
185+ ''; in mkDerivation {
380186 path = "usr.bin/xinstall";
381187 version = "8.0";
382188 sha256 = "1f6pbz3qv1qcrchdxif8p5lbmnwl8b9nq615hsd3cyl4avd5bfqj";
383189 extraPaths = [ mtree.src make.src ];
384− nativeBuildInputs = [ nbBuildPackages.makeMinimal mandoc groff ];
190+ nativeBuildInputs = [ makeMinimal mandoc groff ];
191+ skipIncludesPhase = true;
385192 buildInputs = [ compat fts ];
386193 installPhase = ''
387194 runHook preInstall
@@ -395,7 +202,7 @@ let
395202 '';
396203 };
397204
398− fts = netBSDDerivation {
205+ fts = mkDerivation {
399206 pname = "fts";
400207 path = "include/fts.h";
401208 sha256 = "01d4fpxvz1pgzfk5xznz5dcm0x0gdzwcsfm1h3d0xc9kc6hj2q77";
@@ -407,6 +214,7 @@ let
407214 (fetchNetBSD "lib/libc/include/namespace.h" "8.0" "1sjvh9nw3prnk4rmdwrfsxh6gdb9lmilkn46jcfh3q5c8glqzrd7")
408215 (fetchNetBSD "lib/libc/gen/fts.3" "8.0" "1asxw0n3fhjdadwkkq3xplfgqgl3q32w1lyrvbakfa3gs0wz5zc1")
409216 ];
217+ skipIncludesPhase = true;
410218 buildPhase = ''
411219 cc -c -Iinclude -Ilib/libc/include lib/libc/gen/fts.c \
412220 -o lib/libc/gen/fts.o
@@ -428,132 +236,434 @@ let
428236 ];
429237 };
430238
431− stat = netBSDDerivation {
239+ stat = mkDerivation {
432240 path = "usr.bin/stat";
433241 version = "8.0";
434242 sha256 = "0z4r96id2r4cfy443rw2s1n52n186xm0lqvs8s3qjf4314z7r7yh";
435− nativeBuildInputs = [ nbBuildPackages.makeMinimal nbBuildPackages.install
436− mandoc groff ];
243+ nativeBuildInputs = [ makeMinimal install mandoc groff ];
437244 };
438245
439− tsort = netBSDDerivation {
246+ tsort = mkDerivation {
440247 path = "usr.bin/tsort";
441248 version = "8.0";
442249 sha256 = "1dqvf9gin29nnq3c4byxc7lfd062pg7m84843zdy6n0z63hnnwiq";
443− nativeBuildInputs = [ nbBuildPackages.makeMinimal nbBuildPackages.install
444− mandoc groff ];
250+ nativeBuildInputs = [ makeMinimal install mandoc groff ];
445251 };
446252
447− lorder = netBSDDerivation {
253+ lorder = mkDerivation {
448254 path = "usr.bin/lorder";
449255 version = "8.0";
450256 sha256 = "0rjf9blihhm0n699vr2bg88m4yjhkbxh6fxliaay3wxkgnydjwn2";
451− nativeBuildInputs = [ nbBuildPackages.makeMinimal nbBuildPackages.install
452− mandoc groff ];
257+ nativeBuildInputs = [ makeMinimal install mandoc groff ];
453258 };
454259 ##
455260 ## END BOOTSTRAPPING
456261 ##
457262
458− mtree = netBSDDerivation {
263+ ##
264+ ## START COMMAND LINE TOOLS
265+ ##
266+ make = mkDerivation {
267+ path = "usr.bin/make";
268+ sha256 = "103643qs3w5kiahir6cca2rkm5ink81qbg071qyzk63qvspfq10c";
269+ version = "8.0";
270+ postPatch = ''
271+ # make needs this to pick up our sys make files
272+ export NIX_CFLAGS_COMPILE+=" -D_PATH_DEFSYSPATH=\"$out/share/mk\""
273+
274+ substituteInPlace $NETBSDSRCDIR/share/mk/bsd.lib.mk \
275+ --replace '_INSTRANLIB=''${empty(PRESERVE):?-a "''${RANLIB} -t":}' '_INSTRANLIB='
276+ substituteInPlace $NETBSDSRCDIR/share/mk/bsd.kinc.mk \
277+ --replace /bin/rm rm
278+ '' + lib.optionalString stdenv.isDarwin ''
279+ substituteInPlace $NETBSDSRCDIR/share/mk/bsd.sys.mk \
280+ --replace '-Wl,--fatal-warnings' "" \
281+ --replace '-Wl,--warn-shared-textrel' ""
282+ '';
283+ postInstall = ''
284+ make -C $NETBSDSRCDIR/share/mk FILESDIR=$out/share/mk install
285+ '';
286+ extraPaths = [
287+ (fetchNetBSD "share/mk" "8.0" "033q4w3rmvwznz6m7fn9xcf13chyhwwl8ijj3a9mrn80fkwm55qs")
288+ ];
289+ };
290+
291+ mtree = mkDerivation {
459292 path = "usr.sbin/mtree";
460293 version = "8.0";
461294 sha256 = "0hanmzm8bgwz2bhsinmsgfmgy6nbdhprwmgwbyjm6bl17vgn7vid";
462295 extraPaths = [ mknod.src ];
463296 };
464297
465− mknod = netBSDDerivation {
298+ mknod = mkDerivation {
466299 path = "sbin/mknod";
467300 version = "8.0";
468301 sha256 = "0vq66v0hj0r4z2r2z2d3l3c5vh48pvcdmddc8bhm8hzq2civ5df2";
469302 };
470303
471− getent = netBSDDerivation {
304+ getent = mkDerivation {
472305 path = "usr.bin/getent";
473306 sha256 = "1ylhw4dnpyrmcy8n5kjcxywm8qc9p124dqnm17x4magiqx1kh9iz";
474307 version = "8.0";
475308 patches = [ ./getent.patch ];
476309 };
477310
478− getconf = netBSDDerivation {
311+ getconf = mkDerivation {
479312 path = "usr.bin/getconf";
480313 sha256 = "122vslz4j3h2mfs921nr2s6m078zcj697yrb75rwp2hnw3qz4s8q";
481314 version = "8.0";
482315 };
483316
484− dict = netBSDDerivation {
485− path = "share/dict";
317+ locale = mkDerivation {
318+ path = "usr.bin/locale";
486319 version = "8.0";
487− sha256 = "1pk0y3xc5ihc2k89wjkh33qqx3w9q34k03k2qcffvbqh1l6wm36l";
488− makeFlags = [ "BINDIR=/share" ];
320+ sha256 = "0kk6v9k2bygq0wf9gbinliqzqpzs9bgxn0ndyl2wcv3hh2bmsr9p";
321+ patches = [ ./locale.patch ];
322+ NIX_CFLAGS_COMPILE = "-DYESSTR=__YESSTR -DNOSTR=__NOSTR";
489323 };
490324
491− fingerd = netBSDDerivation {
492− path = "libexec/fingerd";
493− sha256 = "0blcahhgyj1lm0mimrbvgmq3wkjvqk5wy85sdvbs99zxg7da1190";
325+ rpcgen = mkDerivation {
326+ path = "usr.bin/rpcgen";
494327 version = "8.0";
328+ sha256 = "1kfgfx54jg98wbg0d95p0rvf4w0302v8fz724b0bdackdsrd4988";
495329 };
496330
497− libterminfo = netBSDDerivation {
498− path = "lib/libterminfo";
331+ genassym = mkDerivation {
332+ path = "usr.bin/genassym";
499333 version = "8.0";
500− sha256 = "14gp0d6fh6zjnbac2yjhyq5m6rca7gm6q1s9gilhzpdgl9m7vb9r";
501− buildInputs = [ compat tic nbperf ];
502− makeFlags = [ "INCSDIR=/include" ];
503− postPatch = ''
504− substituteInPlace term.c --replace /usr/share $out/share
505− substituteInPlace setupterm.c --replace '#include <curses.h>' 'void use_env(bool);'
334+ sha256 = "1acl1dz5kvh9h5806vkz2ap95rdsz7phmynh5i3x5y7agbki030c";
335+ };
506336
507− '';
508− postInstall = ''
509− make -C $NETBSDSRCDIR/share/terminfo BINDIR=/share
510− make -C $NETBSDSRCDIR/share/terminfo BINDIR=/share install
511− '';
512− extraPaths = [
513− (fetchNetBSD "share/terminfo" "8.0" "18db0fk1dw691vk6lsm6dksm4cf08g8kdm0gc4052ysdagg2m6sm")
514− ];
337+ gencat = mkDerivation {
338+ path = "usr.bin/gencat";
339+ version = "8.0";
340+ sha256 = "1696lgh2lhz93247lklvpvkd0f5asg6z27w2g4bmpfijlgw2h698";
515341 };
516342
517− nbperf = netBSDDerivation {
343+ nbperf = mkDerivation {
518344 path = "usr.bin/nbperf";
519345 version = "8.0";
520346 sha256 = "0gzm0zv2400lasnsswnjw9bwzyizhxzdbrcjwcl1k65aj86aqyqb";
521347 };
522348
523− tic = netBSDDerivation {
349+ tic = mkDerivation {
524350 path = "tools/tic";
525351 version = "8.0";
526352 sha256 = "092y7db7k4kh2jq8qc55126r5qqvlb8lq8mhmy5ipbi36hwb4zrz";
527353 HOSTPROG = "tic";
528− buildInputs = [ compat nbperf ];
354+ buildInputs = [ compat ];
355+ nativeBuildInputs = [ makeMinimal install mandoc groff nbperf ];
356+ makeFlags = [ "TOOLDIR=$(out)" ];
529357 extraPaths = [
530358 libterminfo.src
531359 (fetchNetBSD "usr.bin/tic" "8.0" "0diirnzmdnpc5bixyb34c9rid9paw2a4zfczqrpqrfvjsf1nnljf")
532360 (fetchNetBSD "tools/Makefile.host" "8.0" "1p23dsc4qrv93vc6gzid9w2479jwswry9qfn88505s0pdd7h6nvp")
533361 ];
534362 };
363+ ##
364+ ## END COMMAND LINE TOOLS
365+ ##
366+
367+ ##
368+ ## START HEADERS
369+ ##
370+ include = mkDerivation {
371+ path = "include";
372+ version = "8.0";
373+ sha256 = "128m77k16i7frvk8kifhmxzk7a37m7z1s0bbmja3ywga6sx6v6sq";
374+ nativeBuildInputs = [ makeMinimal install mandoc groff nbperf rpcgen ];
375+ extraPaths = [ common.src ];
376+ headersOnly = true;
377+ noCC = true;
378+ # meta.platforms = lib.platforms.netbsd;
379+ makeFlags = [ "RPCGEN_CPP=${buildPackages.gcc-unwrapped}/bin/cpp" ];
380+ };
381+
382+ common = mkDerivation {
383+ path = "common";
384+ version = "8.0";
385+ sha256 = "1fsm2b7p7zkhiz523jw75088cq2h39iknp0fp3di9a64bikwbhi1";
386+ };
387+
388+ # The full kernel
389+ sys = mkDerivation {
390+ path = "sys";
391+ version = "8.0";
392+ sha256 = "123ilg8fqmp69bw6bs6nh98fpi1v2n9lamrzar61p27ji6sj7g0w";
393+ propagatedBuildInputs = [ include ];
394+ #meta.platforms = lib.platforms.netbsd;
395+ extraPaths = [ common.src ];
396+ MKKMOD = "no";
397+ };
398+
399+ headers = symlinkJoin {
400+ name = "netbsd-headers-8.0";
401+ paths = [ include ] ++ map (pkg: pkg.override (_: {
402+ installPhase = "includesPhase";
403+ dontBuild = true;
404+ noCC = true;
405+ meta.platforms = lib.platforms.all;
406+ })) [ sys libpthread ];
407+ };
408+ ##
409+ ## END HEADERS
410+ ##
411+
412+ ##
413+ ## START LIBRARIES
414+ ##
415+ libutil = mkDerivation {
416+ path = "lib/libutil";
417+ version = "8.0";
418+ sha256 = "077syyxd303m4x7avs5nxzk4c9n13d5lyk5aicsacqjvx79qrk3i";
419+ extraPaths = [ common.src ];
420+ };
421+
422+ libedit = mkDerivation {
423+ path = "lib/libedit";
424+ version = "8.0";
425+ sha256 = "0pmqh2mkfp70bwchiwyrkdyq9jcihx12g1awd6alqi9bpr3f9xmd";
426+ buildInputs = [ libterminfo libcurses ];
427+ propagatedBuildInputs = [ compat ];
428+ postPatch = ''
429+ sed -i '1i #undef bool_t' el.h
430+ substituteInPlace config.h \
431+ --replace "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" ""
432+ substituteInPlace readline/Makefile --replace /usr/include "$out/include"
433+ '';
434+ NIX_CFLAGS_COMPILE = [
435+ "-D__noinline="
436+ "-D__scanflike(a,b)="
437+ "-D__va_list=va_list"
438+ ];
439+ };
535440
536− misc = netBSDDerivation {
537− path = "share/misc";
441+ libterminfo = mkDerivation {
442+ path = "lib/libterminfo";
538443 version = "8.0";
539− sha256 = "0d34b3irjbqsqfk8v8aaj36fjyvwyx410igl26jcx2ryh3ispch8";
540− makeFlags = [ "BINDIR=/share" ];
444+ sha256 = "14gp0d6fh6zjnbac2yjhyq5m6rca7gm6q1s9gilhzpdgl9m7vb9r";
445+ buildInputs = [ compat ];
446+ postPatch = ''
447+ substituteInPlace term.c --replace /usr/share $out/share
448+ substituteInPlace setupterm.c \
449+ --replace '#include <curses.h>' 'void use_env(bool);'
450+ '';
451+ postInstall = ''
452+ make -C $NETBSDSRCDIR/share/terminfo BINDIR=$out/share install
453+ '';
454+ extraPaths = [
455+ (fetchNetBSD "share/terminfo" "8.0" "18db0fk1dw691vk6lsm6dksm4cf08g8kdm0gc4052ysdagg2m6sm")
456+ ];
541457 };
542458
543− locale = netBSDDerivation {
544− path = "usr.bin/locale";
459+ libcurses = mkDerivation {
460+ path = "lib/libcurses";
545461 version = "8.0";
546− sha256 = "0kk6v9k2bygq0wf9gbinliqzqpzs9bgxn0ndyl2wcv3hh2bmsr9p";
547− patches = [ ./locale.patch ];
548− NIX_CFLAGS_COMPILE = "-DYESSTR=__YESSTR -DNOSTR=__NOSTR";
462+ sha256 = "0azhzh1910v24dqx45zmh4z4dl63fgsykajrbikx5xfvvmkcq7xs";
463+ buildInputs = [ libterminfo ];
464+ NIX_CFLAGS_COMPILE = [
465+ "-D__scanflike(a,b)="
466+ "-D__va_list=va_list"
467+ "-D__warn_references(a,b)="
468+ ] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=";
469+ propagatedBuildInputs = [ compat ];
470+ MKDOC = "no"; # missing vfontedpr
471+ postPatch = lib.optionalString (!stdenv.isDarwin) ''
472+ substituteInPlace printw.c \
473+ --replace "funopen(win, NULL, __winwrite, NULL, NULL)" NULL \
474+ --replace "__strong_alias(vwprintw, vw_printw)" 'extern int vwprintw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_printw")));'
475+ substituteInPlace scanw.c \
476+ --replace "__strong_alias(vwscanw, vw_scanw)" 'extern int vwscanw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_scanw")));'
477+ '';
549478 };
550479
551− column = netBSDDerivation {
480+ libkern = mkDerivation {
481+ path = "lib/libkern";
482+ version = "8.0";
483+ sha256 = "1wirqr9bms69n4b5sr32g1b1k41hcamm7c9n7i8c440m73r92yv4";
484+ meta.platforms = lib.platforms.netbsd;
485+ };
486+
487+ column = mkDerivation {
552488 path = "usr.bin/column";
553489 version = "8.0";
554490 sha256 = "0r6b0hjn5ls3j3sv6chibs44fs32yyk2cg8kh70kb4cwajs4ifyl";
555491 };
556492
493+ libossaudio = mkDerivation {
494+ path = "lib/libossaudio";
495+ version = "8.0";
496+ sha256 = "03azp5anavhjr15sinjlik9792lyf7w4zmkcihlkksrywhs05axh";
497+ meta.platforms = lib.platforms.netbsd;
498+ postPatch = ''
499+ substituteInPlace rpc/Makefile --replace /usr $out
500+ '';
501+ };
502+
503+ librpcsvc = mkDerivation {
504+ path = "lib/librpcsvc";
505+ version = "8.0";
506+ sha256 = "14ri9w6gdhsm4id5ck133syyvbmkbknfa8w0xkklm726nskhfkj7";
507+ makeFlags = [ "INCSDIR=$(out)/include/rpcsvc" ];
508+ meta.platforms = lib.platforms.netbsd;
509+ };
510+
511+ librt = mkDerivation {
512+ path = "lib/librt";
513+ version = "8.0";
514+ sha256 = "078qsi4mg1hyyxr1awvjs9b0c2gicg3zw4vl603g1m9vm8gfxw9l";
515+ meta.platforms = lib.platforms.netbsd;
516+ };
517+
518+ libcrypt = mkDerivation {
519+ path = "lib/libcrypt";
520+ version = "8.0";
521+ sha256 = "0siqan1wdqmmhchh2n8w6a8x1abbff8n4yb6jrqxap3hqn8ay54g";
522+ meta.platforms = lib.platforms.netbsd;
523+ };
524+
525+ libpthread = mkDerivation {
526+ path = "lib/libpthread";
527+ version = "8.0";
528+ sha256 = "0pcz61klc3ijf5z2zf8s78nj7bwjfblzjllx7vr4z5qv3m0sdb3j";
529+ meta.platforms = lib.platforms.netbsd;
530+ };
531+
532+ libresolv = mkDerivation {
533+ path = "lib/libresolv";
534+ version = "8.0";
535+ sha256 = "11vpb3p2343wyrhw4v9gwz7i0lcpb9ysmfs9gsx56b5gkgipdy4v";
536+ meta.platforms = lib.platforms.netbsd;
537+ };
538+
539+ libm = mkDerivation {
540+ path = "lib/libm";
541+ version = "8.0";
542+ sha256 = "0i22603cgj6n00gn2m446v4kn1pk109qs1g6ylrslmihfmiy2h1d";
543+ meta.platforms = lib.platforms.netbsd;
544+ };
545+
546+ i18n_module = mkDerivation {
547+ path = "lib/i18n_module";
548+ version = "8.0";
549+ sha256 = "0w6y5v3binm7gf2kn7y9jja8k18rhnyl55cvvfnfipjqdxvxd9jd";
550+ meta.platforms = lib.platforms.netbsd;
551+ };
552+
553+ csu = mkDerivation {
554+ path = "lib/csu";
555+ version = "8.0";
556+ sha256 = "0630lbvz6v4ic13bfg8ccwfhqkgcv76bfdw9f36rfsnwfgpxqsmq";
557+ meta.platforms = lib.platforms.netbsd;
558+ nativeBuildInputs = [ makeMinimal install mandoc groff flex
559+ yacc genassym gencat lorder tsort stat ];
560+ extraPaths = [ sys.src ld_elf_so.src ];
561+ };
562+
563+ ld_elf_so = mkDerivation {
564+ path = "libexec/ld.elf_so";
565+ version = "8.0";
566+ sha256 = "1jmqpi0kg2daiqnvpwdyfy8rpnszxsm70sxizz0r7wn53xjr5hva";
567+ meta.platforms = lib.platforms.netbsd;
568+ USE_FORT = "yes";
569+ extraPaths = [ libc.src ] ++ libc.extraPaths;
570+ };
571+
572+ libc = mkDerivation {
573+ path = "lib/libc";
574+ version = "8.0";
575+ sha256 = "0lgbc58qgn8kwm3l011x1ml1kgcf7jsgq7hbf0hxhlbvxq5bljl3";
576+ USE_FORT = "yes";
577+ MKPROFILE = "no";
578+ extraPaths = [ common.src i18n_module.src sys.src
579+ ld_elf_so.src libpthread.src libm.src libresolv.src
580+ librpcsvc.src libutil.src librt.src libcrypt.src ];
581+ buildInputs = [ buildPackages.netbsd.headers csu ];
582+ nativeBuildInputs = [ makeMinimal install mandoc groff flex
583+ yacc genassym gencat lorder tsort stat ];
584+ NIX_CFLAGS_COMPILE = "-B${csu}/lib";
585+ meta.platforms = lib.platforms.netbsd;
586+ SHLIBINSTALLDIR = "$(out)/lib";
587+ NLSDIR = "$(out)/share/nls";
588+ makeFlags = [ "FILESDIR=$(out)/var/db"];
589+ postInstall = ''
590+ pushd ${buildPackages.netbsd.headers}
591+ find . -type d -exec mkdir -p $out/\{} \;
592+ find . \( -type f -o -type l \) -exec cp -pr \{} $out/\{} \;
593+ popd
594+
595+ pushd ${csu}
596+ find . -type d -exec mkdir -p $out/\{} \;
597+ find . \( -type f -o -type l \) -exec cp -pr \{} $out/\{} \;
598+ popd
599+
600+ NIX_CFLAGS_COMPILE+=" -B$out/lib"
601+ NIX_CFLAGS_COMPILE+=" -I$out/include"
602+ NIX_LDFLAGS+=" -L$out/lib"
603+
604+ make -C $NETBSDSRCDIR/lib/libpthread $makeFlags
605+ make -C $NETBSDSRCDIR/lib/libpthread $makeFlags install
606+
607+ make -C $NETBSDSRCDIR/lib/libm $makeFlags
608+ make -C $NETBSDSRCDIR/lib/libm $makeFlags install
609+
610+ make -C $NETBSDSRCDIR/lib/libresolv $makeFlags
611+ make -C $NETBSDSRCDIR/lib/libresolv $makeFlags install
612+
613+ make -C $NETBSDSRCDIR/lib/librpcsv $makeFlags
614+ make -C $NETBSDSRCDIR/lib/librpcsv $makeFlags install
615+
616+ make -C $NETBSDSRCDIR/lib/i18n_module $makeFlags
617+ make -C $NETBSDSRCDIR/lib/i18n_module $makeFlags install
618+
619+ make -C $NETBSDSRCDIR/lib/libutil $makeFlags
620+ make -C $NETBSDSRCDIR/lib/libutil $makeFlags install
621+
622+ make -C $NETBSDSRCDIR/lib/librt $makeFlags
623+ make -C $NETBSDSRCDIR/lib/librt $makeFlags install
624+
625+ make -C $NETBSDSRCDIR/lib/libcrypt $makeFlags
626+ make -C $NETBSDSRCDIR/lib/libcrypt $makeFlags install
627+ '';
628+ postPatch = ''
629+ substituteInPlace sys/Makefile.inc \
630+ --replace /usr/include/sys/syscall.h ${buildPackages.netbsd.headers}/include/sys/syscall.h
631+ '';
632+ };
633+ #
634+ # END LIBRARIES
635+ #
636+
637+ #
638+ # START MISCELLANEOUS
639+ #
640+ dict = mkDerivation {
641+ path = "share/dict";
642+ noCC = true;
643+ version = "8.0";
644+ sha256 = "1pk0y3xc5ihc2k89wjkh33qqx3w9q34k03k2qcffvbqh1l6wm36l";
645+ makeFlags = [ "BINDIR=$(out)/share" ];
646+ };
647+
648+ misc = mkDerivation {
649+ path = "share/misc";
650+ noCC = true;
651+ version = "8.0";
652+ sha256 = "0d34b3irjbqsqfk8v8aaj36fjyvwyx410igl26jcx2ryh3ispch8";
653+ makeFlags = [ "BINDIR=$(out)/share" ];
654+ };
655+
656+ man = mkDerivation {
657+ path = "share/man";
658+ noCC = true;
659+ version = "8.0";
660+ sha256 = "0d34b3irjbqsqfk8v8aaj36fjyvwyx410igl26jcx2ryh3ispch0";
661+ makeFlags = [ "FILESDIR=$(out)/share" ];
662+ };
663+ #
664+ # END MISCELLANEOUS
665+ #
666+
557667 };
558668
559−in nbPackages
669+in netbsd
pkgs/os-specific/linux/apparmor/default.nix+2−2
@@ -82,8 +82,8 @@ let
8282 prePatch = prePatchCommon + ''
8383 substituteInPlace ./libraries/libapparmor/swig/perl/Makefile.am --replace install_vendor install_site
8484 substituteInPlace ./libraries/libapparmor/swig/perl/Makefile.in --replace install_vendor install_site
85− substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h"
86− substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h"
85+ substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${stdenv.lib.getDev stdenv.cc.libc}/include/netinet/in.h"
86+ substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${stdenv.lib.getDev stdenv.cc.libc}/include/netinet/in.h"
8787 '';
8888 inherit patches;
8989
pkgs/servers/x11/xorg/default.nix+50−24
@@ -1106,11 +1106,11 @@ lib.makeScope newScope (self: with self; {
11061106 }) {};
11071107
11081108 libfontenc = callPackage ({ stdenv, pkgconfig, fetchurl, xorgproto, zlib }: stdenv.mkDerivation {
1109− name = "libfontenc-1.1.3";
1109+ name = "libfontenc-1.1.4";
11101110 builder = ./builder.sh;
11111111 src = fetchurl {
1112− url = mirror://xorg/individual/lib/libfontenc-1.1.3.tar.bz2;
1113− sha256 = "08gxmrhgw97mv0pvkfmd46zzxrn6zdw4g27073zl55gwwqq8jn3h";
1112+ url = mirror://xorg/individual/lib/libfontenc-1.1.4.tar.bz2;
1113+ sha256 = "0y90170dp8wsidr1dzza0grxr1lfh30ji3b5vkjz4j6x1n0wxz1c";
11141114 };
11151115 hardeningDisable = [ "bindnow" "relro" ];
11161116 nativeBuildInputs = [ pkgconfig ];
@@ -1535,11 +1535,11 @@ lib.makeScope newScope (self: with self; {
15351535 }) {};
15361536
15371537 xclock = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, libXaw, libXft, libxkbfile, libXmu, xorgproto, libXrender, libXt }: stdenv.mkDerivation {
1538− name = "xclock-1.0.7";
1538+ name = "xclock-1.0.8";
15391539 builder = ./builder.sh;
15401540 src = fetchurl {
1541− url = mirror://xorg/individual/app/xclock-1.0.7.tar.bz2;
1542− sha256 = "1l3xv4bsca6bwxx73jyjz0blav86i7vwffkhdb1ac81y9slyrki3";
1541+ url = mirror://xorg/individual/app/xclock-1.0.8.tar.bz2;
1542+ sha256 = "0m92zhamh15my9f2rqa14q41d6k2cn468azm3g7g3w9n7942024k";
15431543 };
15441544 hardeningDisable = [ "bindnow" "relro" ];
15451545 nativeBuildInputs = [ pkgconfig ];
@@ -1652,11 +1652,11 @@ lib.makeScope newScope (self: with self; {
16521652 }) {};
16531653
16541654 xev = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, xorgproto, libXrandr }: stdenv.mkDerivation {
1655− name = "xev-1.2.2";
1655+ name = "xev-1.2.3";
16561656 builder = ./builder.sh;
16571657 src = fetchurl {
1658− url = mirror://xorg/individual/app/xev-1.2.2.tar.bz2;
1659− sha256 = "0krivhrxpq6719103r541xpi3i3a0y15f7ypc4lnrx8sdhmfcjnr";
1658+ url = mirror://xorg/individual/app/xev-1.2.3.tar.bz2;
1659+ sha256 = "02ddsdx138g7szhwklpbzi0cxr34871iay3k28kdcihrz8f4zg36";
16601660 };
16611661 hardeningDisable = [ "bindnow" "relro" ];
16621662 nativeBuildInputs = [ pkgconfig ];
@@ -2379,6 +2379,19 @@ lib.makeScope newScope (self: with self; {
23792379 meta.platforms = stdenv.lib.platforms.unix;
23802380 }) {};
23812381
2382+ xfsinfo = callPackage ({ stdenv, pkgconfig, fetchurl, libFS, xorgproto }: stdenv.mkDerivation {
2383+ name = "xfsinfo-1.0.6";
2384+ builder = ./builder.sh;
2385+ src = fetchurl {
2386+ url = mirror://xorg/individual/app/xfsinfo-1.0.6.tar.bz2;
2387+ sha256 = "1mmir5i7gm71xc0ba8vnizi4744vsd31hknhi4cmgvg6kadqngla";
2388+ };
2389+ hardeningDisable = [ "bindnow" "relro" ];
2390+ nativeBuildInputs = [ pkgconfig ];
2391+ buildInputs = [ libFS xorgproto ];
2392+ meta.platforms = stdenv.lib.platforms.unix;
2393+ }) {};
2394+
23822395 xgamma = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, xorgproto, libXxf86vm }: stdenv.mkDerivation {
23832396 name = "xgamma-1.0.6";
23842397 builder = ./builder.sh;
@@ -2406,11 +2419,11 @@ lib.makeScope newScope (self: with self; {
24062419 }) {};
24072420
24082421 xhost = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, libXau, libXmu, xorgproto }: stdenv.mkDerivation {
2409− name = "xhost-1.0.7";
2422+ name = "xhost-1.0.8";
24102423 builder = ./builder.sh;
24112424 src = fetchurl {
2412− url = mirror://xorg/individual/app/xhost-1.0.7.tar.bz2;
2413− sha256 = "16n26xw6l01zq31d4qvsaz50misvizhn7iihzdn5f7s72pp1krlk";
2425+ url = mirror://xorg/individual/app/xhost-1.0.8.tar.bz2;
2426+ sha256 = "15n3mnd4i5kh4z32qv11580qjgvnng0wry2y753ljrqkkrbkrp52";
24142427 };
24152428 hardeningDisable = [ "bindnow" "relro" ];
24162429 nativeBuildInputs = [ pkgconfig ];
@@ -2536,11 +2549,11 @@ lib.makeScope newScope (self: with self; {
25362549 }) {};
25372550
25382551 xlsatoms = callPackage ({ stdenv, pkgconfig, fetchurl, libxcb }: stdenv.mkDerivation {
2539− name = "xlsatoms-1.1.2";
2552+ name = "xlsatoms-1.1.3";
25402553 builder = ./builder.sh;
25412554 src = fetchurl {
2542− url = mirror://xorg/individual/app/xlsatoms-1.1.2.tar.bz2;
2543− sha256 = "196yjik910xsr7dwy8daa0amr0r22ynfs360z0ndp9mx7mydrra7";
2555+ url = mirror://xorg/individual/app/xlsatoms-1.1.3.tar.bz2;
2556+ sha256 = "10m3a046jvaw5ywx4y65kl84lsxqan70gww1g1r7cf96ijaqz1jp";
25442557 };
25452558 hardeningDisable = [ "bindnow" "relro" ];
25462559 nativeBuildInputs = [ pkgconfig ];
@@ -2601,11 +2614,11 @@ lib.makeScope newScope (self: with self; {
26012614 }) {};
26022615
26032616 xmodmap = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, xorgproto }: stdenv.mkDerivation {
2604− name = "xmodmap-1.0.9";
2617+ name = "xmodmap-1.0.10";
26052618 builder = ./builder.sh;
26062619 src = fetchurl {
2607− url = mirror://xorg/individual/app/xmodmap-1.0.9.tar.bz2;
2608− sha256 = "0y649an3jqfq9klkp9y5gj20xb78fw6g193f5mnzpl0hbz6fbc5p";
2620+ url = mirror://xorg/individual/app/xmodmap-1.0.10.tar.bz2;
2621+ sha256 = "0z28331i2pm16x671fa9qwsfqdmr6a43bzwmp0dm17a3sx0hjgs7";
26092622 };
26102623 hardeningDisable = [ "bindnow" "relro" ];
26112624 nativeBuildInputs = [ pkgconfig ];
@@ -2718,11 +2731,11 @@ lib.makeScope newScope (self: with self; {
27182731 }) {};
27192732
27202733 xrdb = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, libXmu, xorgproto }: stdenv.mkDerivation {
2721− name = "xrdb-1.1.1";
2734+ name = "xrdb-1.2.0";
27222735 builder = ./builder.sh;
27232736 src = fetchurl {
2724− url = mirror://xorg/individual/app/xrdb-1.1.1.tar.bz2;
2725− sha256 = "1dqp486nd5sagbg572kl0k839nwvpqnb7jvppyb7jj5vrpkss8rd";
2737+ url = mirror://xorg/individual/app/xrdb-1.2.0.tar.bz2;
2738+ sha256 = "0ik9gh6363c47pr0dp7q22nfs8vmavjg2v4bsr0604ppl77nafpj";
27262739 };
27272740 hardeningDisable = [ "bindnow" "relro" ];
27282741 nativeBuildInputs = [ pkgconfig ];
@@ -2782,6 +2795,19 @@ lib.makeScope newScope (self: with self; {
27822795 meta.platforms = stdenv.lib.platforms.unix;
27832796 }) {};
27842797
2798+ xstdcmap = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, libXmu, xorgproto }: stdenv.mkDerivation {
2799+ name = "xstdcmap-1.0.4";
2800+ builder = ./builder.sh;
2801+ src = fetchurl {
2802+ url = mirror://xorg/individual/app/xstdcmap-1.0.4.tar.bz2;
2803+ sha256 = "12vgzsxv4rw25frkgjyli6w6hy10lgpvsx9wzw2v5l5a3qzqp286";
2804+ };
2805+ hardeningDisable = [ "bindnow" "relro" ];
2806+ nativeBuildInputs = [ pkgconfig ];
2807+ buildInputs = [ libX11 libXmu xorgproto ];
2808+ meta.platforms = stdenv.lib.platforms.unix;
2809+ }) {};
2810+
27852811 xtrans = callPackage ({ stdenv, pkgconfig, fetchurl }: stdenv.mkDerivation {
27862812 name = "xtrans-1.3.5";
27872813 builder = ./builder.sh;
@@ -2809,11 +2835,11 @@ lib.makeScope newScope (self: with self; {
28092835 }) {};
28102836
28112837 xvinfo = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, xorgproto, libXv }: stdenv.mkDerivation {
2812− name = "xvinfo-1.1.3";
2838+ name = "xvinfo-1.1.4";
28132839 builder = ./builder.sh;
28142840 src = fetchurl {
2815− url = mirror://xorg/individual/app/xvinfo-1.1.3.tar.bz2;
2816− sha256 = "1sz5wqhxd1fqsfi1w5advdlwzkizf2fgl12hdpk66f7mv9l8pflz";
2841+ url = mirror://xorg/individual/app/xvinfo-1.1.4.tar.bz2;
2842+ sha256 = "0gz7fvxavqlrqynpfbrm2nc9yx8h0ksnbnv34fj7n1q6cq6j4lq3";
28172843 };
28182844 hardeningDisable = [ "bindnow" "relro" ];
28192845 nativeBuildInputs = [ pkgconfig ];
pkgs/servers/x11/xorg/overrides.nix+8−5
@@ -349,11 +349,6 @@ self: super:
349349 });
350350
351351 xf86inputlibinput = super.xf86inputlibinput.overrideAttrs (attrs: rec {
352− name = "xf86-input-libinput-0.28.0";
353− src = fetchurl {
354− url = "mirror://xorg/individual/driver/${name}.tar.bz2";
355− sha256 = "189h8vl0005yizwrs4d0sng6j8lwkd3xi1zwqg8qavn2bw34v691";
356− };
357352 outputs = [ "out" "dev" ];
358353 buildInputs = attrs.buildInputs ++ [ libinput ];
359354 installFlags = "sdkdir=\${dev}/include/xorg";
@@ -614,8 +609,16 @@ self: super:
614609 }));
615610
616611 lndir = super.lndir.overrideAttrs (attrs: {
612+ buildInputs = [];
617613 preConfigure = ''
614+ export XPROTO_CFLAGS=" "
615+ export XPROTO_LIBS=" "
618616 substituteInPlace lndir.c \
617+ --replace '<X11/Xos.h>' '<string.h>' \
618+ --replace '<X11/Xfuncproto.h>' '<unistd.h>' \
619+ --replace '_X_ATTRIBUTE_PRINTF(1,2)' '__attribute__((__format__(__printf__,1,2)))' \
620+ --replace '_X_ATTRIBUTE_PRINTF(2,3)' '__attribute__((__format__(__printf__,2,3)))' \
621+ --replace '_X_NORETURN' '__attribute__((noreturn))' \
619622 --replace 'n_dirs--;' ""
620623 '';
621624 });
pkgs/servers/x11/xorg/tarballs.list+10−8
@@ -30,7 +30,7 @@ mirror://xorg/individual/app/x11perf-1.6.0.tar.bz2
3030mirror://xorg/individual/app/xauth-1.0.10.tar.bz2
3131mirror://xorg/individual/app/xbacklight-1.2.2.tar.bz2
3232mirror://xorg/individual/app/xcalc-1.0.7.tar.bz2
33−mirror://xorg/individual/app/xclock-1.0.7.tar.bz2
33+mirror://xorg/individual/app/xclock-1.0.8.tar.bz2
3434mirror://xorg/individual/app/xcmsdb-1.0.5.tar.bz2
3535mirror://xorg/individual/app/xcompmgr-1.1.7.tar.bz2
3636mirror://xorg/individual/app/xconsole-1.0.7.tar.bz2
@@ -38,13 +38,14 @@ mirror://xorg/individual/app/xcursorgen-1.0.7.tar.bz2
3838mirror://xorg/individual/app/xdm-1.1.12.tar.bz2
3939mirror://xorg/individual/app/xdpyinfo-1.3.2.tar.bz2
4040mirror://xorg/individual/app/xdriinfo-1.0.6.tar.bz2
41−mirror://xorg/individual/app/xev-1.2.2.tar.bz2
41+mirror://xorg/individual/app/xev-1.2.3.tar.bz2
4242mirror://xorg/individual/app/xeyes-1.1.2.tar.bz2
4343mirror://xorg/individual/app/xfontsel-1.0.6.tar.bz2
4444mirror://xorg/individual/app/xfs-1.2.0.tar.bz2
45+mirror://xorg/individual/app/xfsinfo-1.0.6.tar.bz2
4546mirror://xorg/individual/app/xgamma-1.0.6.tar.bz2
4647mirror://xorg/individual/app/xgc-1.0.5.tar.bz2
47−mirror://xorg/individual/app/xhost-1.0.7.tar.bz2
48+mirror://xorg/individual/app/xhost-1.0.8.tar.bz2
4849mirror://xorg/individual/app/xinit-1.4.1.tar.bz2
4950mirror://xorg/individual/app/xinput-1.6.2.tar.bz2
5051mirror://xorg/individual/app/xkbcomp-1.4.2.tar.bz2
@@ -53,22 +54,23 @@ mirror://xorg/individual/app/xkbprint-1.0.4.tar.bz2
5354mirror://xorg/individual/app/xkbutils-1.0.4.tar.bz2
5455mirror://xorg/individual/app/xkill-1.0.5.tar.bz2
5556mirror://xorg/individual/app/xload-1.1.3.tar.bz2
56−mirror://xorg/individual/app/xlsatoms-1.1.2.tar.bz2
57+mirror://xorg/individual/app/xlsatoms-1.1.3.tar.bz2
5758mirror://xorg/individual/app/xlsclients-1.1.4.tar.bz2
5859mirror://xorg/individual/app/xlsfonts-1.0.6.tar.bz2
5960mirror://xorg/individual/app/xmag-1.0.6.tar.bz2
6061mirror://xorg/individual/app/xmessage-1.0.5.tar.bz2
61−mirror://xorg/individual/app/xmodmap-1.0.9.tar.bz2
62+mirror://xorg/individual/app/xmodmap-1.0.10.tar.bz2
6263mirror://xorg/individual/app/xpr-1.0.5.tar.bz2
6364mirror://xorg/individual/app/xprop-1.2.3.tar.bz2
6465mirror://xorg/individual/app/xrandr-1.5.0.tar.bz2
65−mirror://xorg/individual/app/xrdb-1.1.1.tar.bz2
66+mirror://xorg/individual/app/xrdb-1.2.0.tar.bz2
6667mirror://xorg/individual/app/xrefresh-1.0.6.tar.bz2
6768mirror://xorg/individual/app/xset-1.2.4.tar.bz2
6869mirror://xorg/individual/app/xsetroot-1.1.2.tar.bz2
6970mirror://xorg/individual/app/xsm-1.0.4.tar.bz2
71+mirror://xorg/individual/app/xstdcmap-1.0.4.tar.bz2
7072mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
71−mirror://xorg/individual/app/xvinfo-1.1.3.tar.bz2
73+mirror://xorg/individual/app/xvinfo-1.1.4.tar.bz2
7274mirror://xorg/individual/app/xwd-1.0.7.tar.bz2
7375mirror://xorg/individual/app/xwininfo-1.1.4.tar.bz2
7476mirror://xorg/individual/app/xwud-1.0.5.tar.bz2
@@ -168,7 +170,7 @@ mirror://xorg/individual/font/font-winitzki-cyrillic-1.0.3.tar.bz2
168170mirror://xorg/individual/font/font-xfree86-type1-1.0.4.tar.bz2
169171mirror://xorg/individual/lib/libAppleWM-1.4.1.tar.bz2
170172mirror://xorg/individual/lib/libdmx-1.1.4.tar.bz2
171−mirror://xorg/individual/lib/libfontenc-1.1.3.tar.bz2
173+mirror://xorg/individual/lib/libfontenc-1.1.4.tar.bz2
172174mirror://xorg/individual/lib/libFS-1.0.7.tar.bz2
173175mirror://xorg/individual/lib/libICE-1.0.9.tar.bz2
174176mirror://xorg/individual/lib/libpciaccess-0.14.tar.bz2
pkgs/tools/filesystems/securefs/default.nix+2−2
@@ -4,10 +4,10 @@
44
55stdenv.mkDerivation rec {
66 name = "securefs-${version}";
7− version = "0.8.2";
7+ version = "0.8.3";
88
99 src = fetchFromGitHub {
10− sha256 = "0m3nv748g31b5nzxbwqqqjvygmz41x9vmhrjh655086g26gzrfib";
10+ sha256 = "0nf0bd163gz844mikqab2mh7xjlj31ixa6hi85qxdifyjpfjv7y4";
1111 rev = version;
1212 repo = "securefs";
1313 owner = "netheril96";
pkgs/tools/misc/file/default.nix+2−2
@@ -2,14 +2,14 @@
22
33stdenv.mkDerivation rec {
44 name = "file-${version}";
5− version = "5.35";
5+ version = "5.36";
66
77 src = fetchurl {
88 urls = [
99 "ftp://ftp.astron.com/pub/file/${name}.tar.gz"
1010 "https://distfiles.macports.org/file/${name}.tar.gz"
1111 ];
12− sha256 = "0ijm1fabm68ykr1zbx0bxnka5jr3n42sj8y5mbkrnxs0fj0mxi1h";
12+ sha256 = "0ya330cdkvfi2d28h8gvhghj4gnhysmifmryysl0a97xq2884q7v";
1313 };
1414
1515 nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;
pkgs/tools/networking/network-manager/default.nix+2−2
@@ -9,11 +9,11 @@ let
99 pname = "NetworkManager";
1010in stdenv.mkDerivation rec {
1111 name = "network-manager-${version}";
12− version = "1.14.4";
12+ version = "1.14.6";
1313
1414 src = fetchurl {
1515 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
16− sha256 = "064cgj9za0kzarks0lrv0qw2ysdphb5l97iw0c964bfiqzjfv8rm";
16+ sha256 = "0p9s6b1z9bdmzdjw2gnjsar1671vvcyy9inb0rxg1izf2nnwsfv9";
1717 };
1818
1919 outputs = [ "out" "dev" ];
pkgs/tools/security/notary/default.nix+1−1
@@ -30,7 +30,7 @@ buildGoPackage rec {
3030 runHook postInstall
3131 '';
3232
33− doCheck = true;
33+ #doCheck = true; # broken by tzdata: 2018g -> 2019a
3434 checkPhase = ''
3535 make test PKGS=github.com/theupdateframework/notary/cmd/notary
3636 '';
pkgs/top-level/all-packages.nix+16−6
@@ -6977,6 +6977,7 @@ in
69776977 libcCross1 =
69786978 if stdenv.targetPlatform.libc == "msvcrt" then targetPackages.windows.mingw_w64_headers
69796979 else if stdenv.targetPlatform.libc == "libSystem" then darwin.xcode
6980+ else if stdenv.targetPlatform.libc == "nblibc" then netbsd.headers
69806981 else null;
69816982 binutils1 = wrapBintoolsWith {
69826983 bintools = binutils-unwrapped;
@@ -10211,6 +10212,7 @@ in
1021110212 else if name == "msvcrt" then targetPackages.windows.mingw_w64 or windows.mingw_w64
1021210213 else if stdenv.targetPlatform.useiOSPrebuilt then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
1021310214 else if name == "libSystem" then targetPackages.darwin.xcode
10215+ else if name == "nblibc" then targetPackages.netbsdCross.libc
1021410216 else throw "Unknown libc";
1021510217
1021610218 libcCross = assert stdenv.targetPlatform != stdenv.buildPlatform; libcCrossChooser stdenv.targetPlatform.libc;
@@ -11836,8 +11838,11 @@ in
1183611838
1183711839 ## libGL/libGLU/Mesa stuff
1183811840
11839− # Default libGL implementation, should provide headers and libGL.so/libEGL.so/... to link agains them
11840− libGL = mesa_noglu.stubs;
11841+ # Default libGL implementation, should provide headers and
11842+ # libGL.so/libEGL.so/... to link agains them. Android NDK provides
11843+ # an OpenGL implementation, we can just use that.
11844+ libGL = if stdenv.hostPlatform.useAndroidPrebuilt then stdenv
11845+ else mesa_noglu.stubs;
1184111846
1184211847 # Default libGLU
1184311848 libGLU = mesa_glu;
@@ -12647,10 +12652,13 @@ in
1264712652
1264812653 schroedinger = callPackage ../development/libraries/schroedinger { };
1264912654
12650− SDL = callPackage ../development/libraries/SDL {
12655+ SDL = callPackage ../development/libraries/SDL ({
1265112656 inherit (darwin) cf-private;
1265212657 inherit (darwin.apple_sdk.frameworks) OpenGL CoreAudio CoreServices AudioUnit Kernel Cocoa;
12653− };
12658+ } // lib.optionalAttrs stdenv.hostPlatform.isAndroid {
12659+ # libGLU doesn’t work with Android’s SDL
12660+ libGLU = null;
12661+ });
1265412662
1265512663 SDL_sixel = callPackage ../development/libraries/SDL_sixel { };
1265612664
@@ -23600,8 +23608,10 @@ in
2360023608
2360123609 fts = if stdenv.hostPlatform.isMusl then netbsd.fts else null;
2360223610
23603− inherit (recurseIntoAttrs (callPackages ../os-specific/bsd { }))
23604− netbsd;
23611+ netbsd = callPackages ../os-specific/bsd/netbsd {};
23612+ netbsdCross = callPackages ../os-specific/bsd/netbsd {
23613+ stdenv = crossLibcStdenv;
23614+ };
2360523615
2360623616 yrd = callPackage ../tools/networking/yrd { };
2360723617