From 9e88aadbb4e215af141c4ea98a97c2d2a6a7cbd3 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 26 Sep 2021 16:31:17 +0300 Subject: [PATCH 01/24] plplot: Support wx and xwin drivers --- pkgs/development/libraries/plplot/default.nix | 29 +++++++++++++++++-- pkgs/top-level/all-packages.nix | 4 ++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/plplot/default.nix b/pkgs/development/libraries/plplot/default.nix index 05f12d0148be..a4a554eea6ee 100644 --- a/pkgs/development/libraries/plplot/default.nix +++ b/pkgs/development/libraries/plplot/default.nix @@ -1,6 +1,16 @@ -{ lib, stdenv, fetchurl, cmake }: +{ lib +, stdenv +, fetchurl +, cmake +, enableWX ? false +, wxGTK31, wxmac +, enableXWin ? false +, libX11 +}: -stdenv.mkDerivation rec { +let + wxWidgets = (if stdenv.isDarwin then wxmac else wxGTK31); +in stdenv.mkDerivation rec { pname = "plplot"; version = "5.15.0"; @@ -11,6 +21,21 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + buildInputs = [ + ] + ++ lib.optional enableWX wxWidgets + ++ lib.optional enableXWin libX11 + ; + + passthru = { + inherit + enableWX + wxWidgets + enableXWin + libX11 + ; + }; + cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" "-DBUILD_TEST=ON" ]; doCheck = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9933bfc4af47..9728ae4ce92d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5900,7 +5900,9 @@ with pkgs; pixz = callPackage ../tools/compression/pixz { }; - plplot = callPackage ../development/libraries/plplot { }; + plplot = callPackage ../development/libraries/plplot { + inherit (xorg) libX11; + }; pxattr = callPackage ../tools/archivers/pxattr { }; From 499eb1b56a4ef24d7279920661e3ef865b0d0e37 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 26 Sep 2021 16:32:17 +0300 Subject: [PATCH 02/24] hdf4: consistently use *Support arguments --- pkgs/tools/misc/hdf4/default.nix | 20 ++++++++++++++++---- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/hdf4/default.nix b/pkgs/tools/misc/hdf4/default.nix index 99acda6b7883..98cd0cfbdee3 100644 --- a/pkgs/tools/misc/hdf4/default.nix +++ b/pkgs/tools/misc/hdf4/default.nix @@ -7,7 +7,8 @@ , uselibtirpc ? stdenv.isLinux , libtirpc , zlib -, szip ? null +, szipSupport ? false +, szip , javaSupport ? false , jdk }: @@ -55,10 +56,10 @@ stdenv.mkDerivation rec { buildInputs = [ libjpeg - szip zlib ] ++ lib.optional javaSupport jdk + ++ lib.optional szipSupport szip ++ lib.optional uselibtirpc libtirpc; preConfigure = lib.optionalString uselibtirpc '' @@ -66,7 +67,7 @@ stdenv.mkDerivation rec { substituteInPlace config/cmake/FindXDR.cmake \ --replace 'find_path(XDR_INCLUDE_DIR NAMES rpc/types.h PATHS "/usr/include" "/usr/include/tirpc")' \ 'find_path(XDR_INCLUDE_DIR NAMES rpc/types.h PATH_SUFFIXES include/tirpc)' - '' + lib.optionalString (szip != null) '' + '' + lib.optionalString szipSupport '' export SZIP_INSTALL=${szip} ''; @@ -85,7 +86,7 @@ stdenv.mkDerivation rec { "-DJAVA_HOME=${jdk}" "-DJAVA_AWT_LIBRARY=${javabase}/libawt.so" "-DJAVA_JVM_LIBRARY=${javabase}/server/libjvm.so" - ] ++ lib.optionals (szip != null) [ + ] ++ lib.optionals szipSupport [ "-DHDF4_ENABLE_SZIP_ENCODING=ON" "-DHDF4_ENABLE_SZIP_SUPPORT=ON" ]; @@ -119,6 +120,17 @@ stdenv.mkDerivation rec { moveToOutput bin "$bin" ''; + passthru = { + inherit + uselibtirpc + libtirpc + szipSupport + szip + javaSupport + jdk + ; + }; + meta = with lib; { description = "Data model, library, and file format for storing and managing data"; homepage = "https://support.hdfgroup.org/products/hdf4/"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9728ae4ce92d..672c80ea17c2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5969,9 +5969,7 @@ with pkgs; hddtemp = callPackage ../tools/misc/hddtemp { }; - hdf4 = callPackage ../tools/misc/hdf4 { - szip = null; - }; + hdf4 = callPackage ../tools/misc/hdf4 { }; hdf5 = callPackage ../tools/misc/hdf5 { gfortran = null; From 72a43411299409918f0482d69625169ea99e1d2c Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 26 Sep 2021 16:33:31 +0300 Subject: [PATCH 03/24] hdf5: consistently use *Support arguments --- pkgs/tools/misc/hdf5/1.10.nix | 11 ++++---- pkgs/tools/misc/hdf5/default.nix | 47 ++++++++++++++++++++------------ pkgs/top-level/all-packages.nix | 9 +++--- 3 files changed, 39 insertions(+), 28 deletions(-) diff --git a/pkgs/tools/misc/hdf5/1.10.nix b/pkgs/tools/misc/hdf5/1.10.nix index 4e57a1c8e48a..74d8fce599a8 100644 --- a/pkgs/tools/misc/hdf5/1.10.nix +++ b/pkgs/tools/misc/hdf5/1.10.nix @@ -1,7 +1,9 @@ -{ lib, stdenv +{ lib +, stdenv , fetchurl , removeReferencesTo -, zlib ? null +, zlibSupport ? true +, zlib , enableShared ? !stdenv.hostPlatform.isStatic , javaSupport ? false , jdk @@ -24,10 +26,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ removeReferencesTo ]; - propagatedBuildInputs = optional (zlib != null) zlib; + propagatedBuildInputs = optional zlibSupport zlib; - configureFlags = [] - ++ optional enableShared "--enable-shared" + configureFlags = optional enableShared "--enable-shared" ++ optional javaSupport "--enable-java"; patches = [ diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index c5485a5b3fb1..43c156de419e 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -1,10 +1,14 @@ -{ lib, stdenv +{ lib +, stdenv , fetchurl , removeReferencesTo -, cpp ? false -, gfortran ? null -, zlib ? null -, szip ? null +, cppSupport ? false +, fortranSupport ? false +, fortran +, zlibSupport ? true +, zlib +, szipSupport ? false +, szip , mpiSupport ? false , mpi , enableShared ? !stdenv.hostPlatform.isStatic @@ -15,7 +19,7 @@ # cpp and mpi options are mutually exclusive # (--enable-unsupported could be used to force the build) -assert !cpp || !mpiSupport; +assert !cppSupport || !mpiSupport; let inherit (lib) optional optionals; in @@ -28,28 +32,35 @@ stdenv.mkDerivation rec { }; passthru = { - inherit mpiSupport; - inherit mpi; + inherit + cppSupport + fortranSupport + fortran + zlibSupport + zlib + szipSupport + szip + mpiSupport + mpi + ; }; outputs = [ "out" "dev" ]; nativeBuildInputs = [ removeReferencesTo ] - ++ optional (gfortran != null) gfortran; + ++ optional fortranSupport fortran; - buildInputs = [] - ++ optional (szip != null) szip + buildInputs = optional fortranSupport fortran + ++ optional szipSupport szip ++ optional javaSupport jdk; - propagatedBuildInputs = [] - ++ optional (zlib != null) zlib + propagatedBuildInputs = optional zlibSupport zlib ++ optional mpiSupport mpi; - configureFlags = [] - ++ optional cpp "--enable-cxx" - ++ optional (gfortran != null) "--enable-fortran" - ++ optional (szip != null) "--with-szlib=${szip}" - ++ optionals mpiSupport ["--enable-parallel" "CC=${mpi}/bin/mpicc"] + configureFlags = optional cppSupport "--enable-cxx" + ++ optional fortranSupport "--enable-fortran" + ++ optional szipSupport "--with-szlib=${szip}" + ++ optionals mpiSupport [ "--enable-parallel" "CC=${mpi}/bin/mpicc" ] ++ optional enableShared "--enable-shared" ++ optional javaSupport "--enable-java" ++ optional usev110Api "--with-default-api-version=v110"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 672c80ea17c2..97b1ee0721fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5972,23 +5972,22 @@ with pkgs; hdf4 = callPackage ../tools/misc/hdf4 { }; hdf5 = callPackage ../tools/misc/hdf5 { - gfortran = null; - szip = null; + fortranSupport = false; + fortran = gfortran; }; hdf5_1_10 = callPackage ../tools/misc/hdf5/1.10.nix { }; hdf5-mpi = appendToName "mpi" (hdf5.override { - szip = null; mpiSupport = true; }); hdf5-cpp = appendToName "cpp" (hdf5.override { - cpp = true; + cppSupport = true; }); hdf5-fortran = appendToName "fortran" (hdf5.override { - inherit gfortran; + fortranSupport = true; }); hdf5-threadsafe = appendToName "threadsafe" (hdf5.overrideAttrs (oldAttrs: { From 3c024373c16f5f677b79808ea1d5116c8caf6e9d Mon Sep 17 00:00:00 2001 From: Shamrock Lee <44064051+ShamrockLee@users.noreply.github.com> Date: Mon, 4 Oct 2021 03:16:35 +0800 Subject: [PATCH 04/24] netcdf: prettify --- pkgs/development/libraries/netcdf/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index d24078b91a27..711097757220 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -8,8 +8,7 @@ }: let - mpiSupport = hdf5.mpiSupport; - mpi = hdf5.mpi; + inherit (hdf5) mpiSupport mpi; in stdenv.mkDerivation rec { pname = "netcdf"; version = "4.8.0"; # Remove patch mentioned below on upgrade @@ -44,8 +43,7 @@ in stdenv.mkDerivation rec { buildInputs = [ hdf5 curl mpi ]; passthru = { - mpiSupport = mpiSupport; - inherit mpi; + inherit mpiSupport mpi; }; configureFlags = [ From 4c168e46797696afa8a732a13834f62e412348e1 Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Fri, 15 Oct 2021 22:13:35 +0200 Subject: [PATCH 05/24] mimic: reorder attributes --- pkgs/applications/audio/mimic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/mimic/default.nix b/pkgs/applications/audio/mimic/default.nix index cd24bec3035e..870584d357eb 100644 --- a/pkgs/applications/audio/mimic/default.nix +++ b/pkgs/applications/audio/mimic/default.nix @@ -7,9 +7,9 @@ stdenv.mkDerivation rec { version = "1.3.0.1"; src = fetchFromGitHub { - rev = version; - repo = "mimic1"; owner = "MycroftAI"; + repo = "mimic1"; + rev = version; sha256 = "1agwgby9ql8r3x5rd1rgx3xp9y4cdg4pi3kqlz3vanv9na8nf3id"; }; From 5213ac95cce079b20252afc35fdd89981b321987 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 16 Oct 2021 20:37:14 -0400 Subject: [PATCH 06/24] tidy-viewer: init at 0.0.21 --- pkgs/tools/text/tidy-viewer/default.nix | 29 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/text/tidy-viewer/default.nix diff --git a/pkgs/tools/text/tidy-viewer/default.nix b/pkgs/tools/text/tidy-viewer/default.nix new file mode 100644 index 000000000000..efa1784e7bf6 --- /dev/null +++ b/pkgs/tools/text/tidy-viewer/default.nix @@ -0,0 +1,29 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "tidy-viewer"; + version = "0.0.21"; + + src = fetchFromGitHub { + owner = "alexhallam"; + repo = "tv"; + rev = version; + sha256 = "1zjnc2b9y2f6x114svp31r1lzkak4xfn71qrxch30mq2aj4yzd2l"; + }; + + cargoSha256 = "sha256-M6HInLevKvF4zBNe+Sg8fQK6koefRaO0l5AcrFhH+vI="; + + # this test parses command line arguments + # error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context + checkFlags = [ + "--skip=build_reader_can_create_reader_without_file_specified" + ]; + + meta = with lib; { + description = "A cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment"; + homepage = "https://github.com/alexhallam/tv"; + changelog = "https://github.com/alexhallam/tv/blob/${version}/CHANGELOG.md"; + license = licenses.unlicense; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 496788f6e53e..3fbd898aaded 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9776,6 +9776,8 @@ with pkgs; thinkpad-scripts = python3.pkgs.callPackage ../tools/misc/thinkpad-scripts { }; + tidy-viewer = callPackage ../tools/text/tidy-viewer { }; + tiled = libsForQt5.callPackage ../applications/editors/tiled { }; tiledb = callPackage ../development/libraries/tiledb { }; From ac6f34a6698d6079a46dd1dc88e8b52d40134b8f Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 7 Oct 2021 11:44:21 +0800 Subject: [PATCH 07/24] pantheon.evince: init --- pkgs/desktops/gnome/core/evince/default.nix | 28 ++++-- .../core/evince/pantheon-dark-style.patch | 86 +++++++++++++++++++ pkgs/desktops/pantheon/default.nix | 2 + 3 files changed, 111 insertions(+), 5 deletions(-) create mode 100644 pkgs/desktops/gnome/core/evince/pantheon-dark-style.patch diff --git a/pkgs/desktops/gnome/core/evince/default.nix b/pkgs/desktops/gnome/core/evince/default.nix index 39eb0338332c..45812dbc901a 100644 --- a/pkgs/desktops/gnome/core/evince/default.nix +++ b/pkgs/desktops/gnome/core/evince/default.nix @@ -30,6 +30,7 @@ , gsettings-desktop-schemas , gnome-desktop , dbus +, pantheon , python3 , texlive , t1lib @@ -40,6 +41,7 @@ , supportMultimedia ? true # PDF multimedia , libgxps , supportXPS ? true # Open XML Paper Specification via libgxps +, withPantheon ? false }: stdenv.mkDerivation rec { @@ -53,6 +55,13 @@ stdenv.mkDerivation rec { sha256 = "lautDW/urJVg2zq4C6fF6rsf3xyg47PJMzmvBUU6JNg="; }; + patches = lib.optionals withPantheon [ + # Make this respect dark mode settings from Pantheon + # https://github.com/elementary/evince + # The patch currently differs from upstream (updated for evince 41). + ./pantheon-dark-style.patch + ]; + postPatch = '' chmod +x meson_post_install.py patchShebangs meson_post_install.py @@ -96,9 +105,18 @@ stdenv.mkDerivation rec { poppler t1lib texlive.bin.core # kpathsea for DVI support - ] ++ lib.optional supportXPS libgxps - ++ lib.optionals supportMultimedia (with gst_all_1; [ - gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]); + ] ++ lib.optionals supportXPS [ + libgxps + ] ++ lib.optionals supportMultimedia (with gst_all_1; [ + gstreamer + gst-plugins-base + gst-plugins-good + gst-plugins-bad + gst-plugins-ugly + gst-libav + ]) ++ lib.optionals withPantheon [ + pantheon.granite + ]; mesonFlags = [ "-Dnautilus=false" @@ -128,8 +146,8 @@ stdenv.mkDerivation rec { on the GNOME Desktop with a single simple application. ''; - license = lib.licenses.gpl2Plus; + license = licenses.gpl2Plus; platforms = platforms.linux; - maintainers = teams.gnome.members; + maintainers = teams.gnome.members ++ teams.pantheon.members; }; } diff --git a/pkgs/desktops/gnome/core/evince/pantheon-dark-style.patch b/pkgs/desktops/gnome/core/evince/pantheon-dark-style.patch new file mode 100644 index 000000000000..5e1ef67b08cd --- /dev/null +++ b/pkgs/desktops/gnome/core/evince/pantheon-dark-style.patch @@ -0,0 +1,86 @@ +diff --git a/meson.build b/meson.build +index bcb69cf7..4a18c08c 100644 +--- a/meson.build ++++ b/meson.build +@@ -162,6 +162,7 @@ gmodule_dep = dependency('gmodule-2.0') + gmodule_no_export_dep = dependency('gmodule-no-export-2.0', version: glib_req_version) + gtk_dep = dependency('gtk+-3.0', version: gtk_req_version) + gthread_dep = dependency('gthread-2.0', version: glib_req_version) ++granite_dep = dependency('granite') + # Keep the version here synchronised with subprojects/libhandy.wrap + hdy_dep = dependency('libhandy-1', version: hdy_req_version, fallback: ['libhandy', 'libhandy_dep']) + +diff --git a/shell/ev-application.c b/shell/ev-application.c +index e704bda2..d705328c 100644 +--- a/shell/ev-application.c ++++ b/shell/ev-application.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #ifdef GDK_WINDOWING_X11 + #include +@@ -176,7 +177,7 @@ ev_spawn (const char *uri, + + g_string_append_printf (cmd, " %s", path); + g_free (path); +- ++ + /* Page label */ + if (dest) { + switch (ev_link_dest_get_dest_type (dest)) { +@@ -940,6 +941,20 @@ ev_application_migrate_config_dir (EvApplication *application) + g_free (old_accels); + } + ++static void ++ev_application_set_prefers_color_scheme () ++{ ++ GtkSettings* gtk_settings = gtk_settings_get_default (); ++ GraniteSettings* granite_settings = granite_settings_get_default (); ++ ++ g_object_set ( ++ gtk_settings, ++ "gtk-application-prefer-dark-theme", ++ granite_settings_get_prefers_color_scheme (granite_settings) == GRANITE_SETTINGS_COLOR_SCHEME_DARK, ++ NULL ++ ); ++} ++ + static void + ev_application_startup (GApplication *gapplication) + { +@@ -992,6 +1007,7 @@ ev_application_startup (GApplication *gapplication) + + EvApplication *application = EV_APPLICATION (gapplication); + const gchar **it; ++ GraniteSettings* granite_settings = granite_settings_get_default (); + + g_application_set_resource_base_path (gapplication, "/org/gnome/evince"); + +@@ -999,6 +1015,11 @@ ev_application_startup (GApplication *gapplication) + + hdy_init (); + ++ ev_application_set_prefers_color_scheme (); ++ ++ g_signal_connect (granite_settings, "notify::prefers-color-scheme", ++ G_CALLBACK(ev_application_set_prefers_color_scheme), NULL); ++ + for (it = action_accels; it[0]; it += g_strv_length ((gchar **)it) + 1) + gtk_application_set_accels_for_action (GTK_APPLICATION (application), it[0], &it[1]); + } +diff --git a/shell/meson.build b/shell/meson.build +index 7cbc48f2..a3089b13 100644 +--- a/shell/meson.build ++++ b/shell/meson.build +@@ -52,6 +52,7 @@ sources += gnome.compile_resources( + deps = [ + gdk_pixbuf_dep, + gnome_desktop_dep, ++ granite_dep, + hdy_dep, + libevmisc_dep, + libevproperties_dep, diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index b3b5409f6a01..668638c1bfec 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -71,6 +71,8 @@ lib.makeScope pkgs.newScope (self: with self; { epiphany = pkgs.epiphany.override { withPantheon = true; }; + evince = pkgs.evince.override { withPantheon = true; }; + sideload = callPackage ./apps/sideload { }; #### DESKTOP From ce7479ef91037dbe08540d8148cd2fdd509f4abd Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 7 Oct 2021 11:52:48 +0800 Subject: [PATCH 08/24] nixos/evince: add option for specify package --- nixos/modules/programs/evince.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/nixos/modules/programs/evince.nix b/nixos/modules/programs/evince.nix index 473fddb09d02..c033230afb10 100644 --- a/nixos/modules/programs/evince.nix +++ b/nixos/modules/programs/evince.nix @@ -4,7 +4,9 @@ with lib; -{ +let cfg = config.programs.evince; + +in { # Added 2019-08-09 imports = [ @@ -22,6 +24,13 @@ with lib; enable = mkEnableOption "Evince, the GNOME document viewer"; + package = mkOption { + type = types.package; + default = pkgs.evince; + defaultText = literalExpression "pkgs.evince"; + description = "Evince derivation to use."; + }; + }; }; @@ -31,11 +40,11 @@ with lib; config = mkIf config.programs.evince.enable { - environment.systemPackages = [ pkgs.evince ]; + environment.systemPackages = [ cfg.package ]; - services.dbus.packages = [ pkgs.evince ]; + services.dbus.packages = [ cfg.package ]; - systemd.packages = [ pkgs.evince ]; + systemd.packages = [ cfg.package ]; }; From cae293443bbbf07c05912c8ee1f6a6facfbde5bc Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 7 Oct 2021 11:54:04 +0800 Subject: [PATCH 09/24] nixos/pantheon: prefer pantheon.evince --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 10969a373bb3..112f493b811c 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -219,6 +219,7 @@ in ] config.environment.pantheon.excludePackages); programs.evince.enable = mkDefault true; + programs.evince.package = pkgs.pantheon.evince; programs.file-roller.enable = mkDefault true; # Settings from elementary-default-settings From 609928f5a1599b029a12dbf748b01d23ccada5a1 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 17 Oct 2021 11:41:46 +0800 Subject: [PATCH 10/24] pantheon.epiphany: rename patches --- pkgs/desktops/gnome/core/epiphany/default.nix | 10 +++++++--- .../{dark-style.patch => pantheon-dark-style.patch} | 0 ...buttons.patch => pantheon-navigation-buttons.patch} | 0 3 files changed, 7 insertions(+), 3 deletions(-) rename pkgs/desktops/gnome/core/epiphany/{dark-style.patch => pantheon-dark-style.patch} (100%) rename pkgs/desktops/gnome/core/epiphany/{navigation-buttons.patch => pantheon-navigation-buttons.patch} (100%) diff --git a/pkgs/desktops/gnome/core/epiphany/default.nix b/pkgs/desktops/gnome/core/epiphany/default.nix index 1a3a67f0d786..617ef1cc38f5 100644 --- a/pkgs/desktops/gnome/core/epiphany/default.nix +++ b/pkgs/desktops/gnome/core/epiphany/default.nix @@ -47,9 +47,11 @@ stdenv.mkDerivation rec { }; patches = lib.optionals withPantheon [ + # Make this respect dark mode settings from Pantheon # https://github.com/elementary/browser - ./dark-style.patch - ./navigation-buttons.patch + # The patch currently differs from upstream (updated for epiphany 40 and 41). + ./pantheon-dark-style.patch + ./pantheon-navigation-buttons.patch ]; nativeBuildInputs = [ @@ -95,7 +97,9 @@ stdenv.mkDerivation rec { p11-kit sqlite webkitgtk - ] ++ lib.optional withPantheon pantheon.granite; + ] ++ lib.optionals withPantheon [ + pantheon.granite + ]; # Tests need an X display mesonFlags = [ diff --git a/pkgs/desktops/gnome/core/epiphany/dark-style.patch b/pkgs/desktops/gnome/core/epiphany/pantheon-dark-style.patch similarity index 100% rename from pkgs/desktops/gnome/core/epiphany/dark-style.patch rename to pkgs/desktops/gnome/core/epiphany/pantheon-dark-style.patch diff --git a/pkgs/desktops/gnome/core/epiphany/navigation-buttons.patch b/pkgs/desktops/gnome/core/epiphany/pantheon-navigation-buttons.patch similarity index 100% rename from pkgs/desktops/gnome/core/epiphany/navigation-buttons.patch rename to pkgs/desktops/gnome/core/epiphany/pantheon-navigation-buttons.patch From acb119c16e9eb23ff1d8da2eea8695017c72a29c Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 17 Oct 2021 04:33:14 +0000 Subject: [PATCH 11/24] python38Packages.pulsectl: 21.10.4 -> 21.10.5 --- pkgs/development/python-modules/pulsectl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pulsectl/default.nix b/pkgs/development/python-modules/pulsectl/default.nix index 005974a542c4..6e35cb573586 100644 --- a/pkgs/development/python-modules/pulsectl/default.nix +++ b/pkgs/development/python-modules/pulsectl/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "pulsectl"; - version = "21.10.4"; + version = "21.10.5"; src = fetchPypi { inherit pname version; - sha256 = "c9593a54d01dc1ab47ef20464aa7d00433690c86ae840c58f458fe6dedd6b41a"; + sha256 = "b347983fb78baab168f4dc4804ab2c59ca5b813bf62f8146dfb5fcb6ab6c8ba2"; }; patches = [ From d80b0c01711f840aa703a3c923f7d941cded15b9 Mon Sep 17 00:00:00 2001 From: Shamrock Lee <44064051+ShamrockLee@users.noreply.github.com> Date: Fri, 25 Sep 2020 03:10:22 +0000 Subject: [PATCH 12/24] gnudatalanguage: Init at 1.0.0 * Generate PlPlot drivers by injecting wxGtk31 (if enableWX == true) and/or xorg.libX11 (if enableXWin == true, default to false) into the buildInputs of plplot with plplot.overrideAttrs * Override hdf4 and hdf5 with custom mpi (if enableMPI == true and libraryMPI == mpich) and szip (if enableSzip == true, default to false) --- .../interpreters/gnudatalanguage/default.nix | 203 ++++++++++++++++++ pkgs/development/libraries/plplot/default.nix | 7 +- pkgs/top-level/all-packages.nix | 6 + 3 files changed, 211 insertions(+), 5 deletions(-) create mode 100644 pkgs/development/interpreters/gnudatalanguage/default.nix diff --git a/pkgs/development/interpreters/gnudatalanguage/default.nix b/pkgs/development/interpreters/gnudatalanguage/default.nix new file mode 100644 index 000000000000..38f340233017 --- /dev/null +++ b/pkgs/development/interpreters/gnudatalanguage/default.nix @@ -0,0 +1,203 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, wrapGAppsHook +, readline +, ncurses +, zlib +, gsl +, openmp +, graphicsmagick +, fftw +, fftwFloat +, fftwLongDouble +, proj +, shapelib +, expat +, udunits +, eigen +, pslib +, eccodes +, glpk +, libpng +, plplot +, libtiff +, libgeotiff +, libjpeg + # We enable it in hdf4 and use libtirpc as a dependency here from the passthru + # of hdf4 +, enableLibtirpc ? stdenv.isLinux +, libtirpc +, python3 +, enableMPI ? (stdenv.isLinux || stdenv.isDarwin) + # Choose MPICH over OpenMPI because it currently builds on AArch and Darwin +, mpi + # Unfree optional dependency for hdf4 and hdf5 +, enableSzip ? false +, szip +, enableHDF4 ? true +, hdf4 +, hdf4-forced ? null +, enableHDF5 ? true + # HDF5 format version (API version) 1.10 and 1.12 is not fully compatible + # Specify if the API version should default to 1.10 + # netcdf currently depends on hdf5 with `usev110Api=true` + # If you wish to use HDF5 API version 1.12 (`useHdf5v110Api=false`), + # you will need to turn NetCDF off. +, useHdf5v110Api ? true +, hdf5 +, hdf5-forced ? null +, enableNetCDF ? true +, netcdf +, netcdf-forced ? null +, plplot-forced ? null + # wxWidgets is preferred over X11 for this project but we only have it on Linux + # and Darwin. Also, we use the wxWidgets dependency here from the passthru of + # plplot. +, enableWX ? (stdenv.isLinux || stdenv.isDarwin) + # X11: OFF by default for platform consistency. Use X where WX is not available +, enableXWin ? (!stdenv.isLinux && !stdenv.isDarwin) +}: + +let + hdf4-custom = + if hdf4-forced != null + then hdf4-forced + else + hdf4.override { + uselibtirpc = enableLibtirpc; + szipSupport = enableSzip; + inherit szip; + }; + hdf5-custom = + if hdf5-forced != null + then hdf5-forced + else + hdf5.override { + usev110Api = useHdf5v110Api; + mpiSupport = enableMPI; + inherit mpi; + szipSupport = enableSzip; + inherit szip; + }; + netcdf-custom = + if netcdf-forced != null + then netcdf-forced + else + netcdf.override { + hdf5 = hdf5-custom; + }; + enablePlplotDrivers = enableWX || enableXWin; + plplot-with-drivers = + if plplot-forced != null + then plplot-forced + else + plplot.override { + inherit + enableWX + enableXWin + ; + }; +in +stdenv.mkDerivation rec { + pname = "gnudatalanguage"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = pname; + repo = "gdl"; + rev = "v${version}"; + sha256 = "sha256-Y9LVRaWjQqpWqjNngxB406PE/rl/9S8rs0u0CK5ivUA="; + }; + + buildInputs = [ + readline + ncurses + zlib + gsl + openmp + graphicsmagick + fftw + fftwFloat + fftwLongDouble + proj + shapelib + expat + mpi + udunits + eigen + pslib + eccodes + glpk + libpng + libtiff + libgeotiff + libjpeg + hdf4-custom + hdf5-custom + netcdf-custom + plplot-with-drivers + ] ++ lib.optional enableXWin plplot-with-drivers.libX11 + ++ lib.optional enableWX plplot-with-drivers.wxWidgets + ++ lib.optional enableMPI mpi + ++ lib.optional enableLibtirpc hdf4-custom.libtirpc + ++ lib.optional enableSzip szip; + + propagatedBuildInputs = [ + (python3.withPackages (ps: with ps; [ numpy ])) + ]; + + nativeBuildInputs = [ + cmake + ] ++ lib.optional enableWX wrapGAppsHook; + + cmakeFlags = lib.optional (!enableHDF4) "-DHDF=OFF" + ++ [ (if enableHDF5 then "-DHDF5DIR=${hdf5-custom}" else "-DHDF5=OFF") ] + ++ lib.optional (!enableNetCDF) "-DNETCDF=OFF" + ++ lib.optional (!enablePlplotDrivers) "-DINTERACTIVE_GRAPHICS=OFF" + ++ lib.optional (!enableWX) "-DWXWIDGETS=OFF" + ++ lib.optional enableSzip "-DSZIPDIR=${szip}" + ++ lib.optionals enableXWin [ "-DX11=ON" "-DX11DIR=${plplot-with-drivers.libX11}" ] + ++ lib.optionals enableMPI [ "-DMPI=ON" "-DMPIDIR=${mpi}" ]; + + doCheck = true; + + # Opt-out unstable tests + # https://github.com/gnudatalanguage/gdl/issues/482 + # https://github.com/gnudatalanguage/gdl/issues/1079 + # https://github.com/gnudatalanguage/gdl/issues/460 + preCheck = '' + checkFlagsArray+=("ARGS=-E 'test_tic_toc.pro|test_byte_conversion.pro|test_bytscl.pro|test_call_external.pro'") + ''; + + passthru = { + hdf4 = hdf4-custom; + hdf5 = hdf5-custom; + netcdf = netcdf-custom; + plplot = plplot-with-drivers; + python = python3; + inherit + enableMPI + mpi + useHdf5v110Api + enableSzip + enableWX + enableXWin + ; + }; + + meta = with lib; { + description = "Free incremental compiler of IDL"; + longDescription = '' + GDL (GNU Data Language) is a free/libre/open source incremental compiler + compatible with IDL (Interactive Data Language) and to some extent with PV-WAVE. + GDL is aimed as a drop-in replacement for IDL. + ''; + homepage = "https://github.com/gnudatalanguage/gdl"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ ShamrockLee ]; + platforms = platforms.all; + mainProgram = "gdl"; + }; +} diff --git a/pkgs/development/libraries/plplot/default.nix b/pkgs/development/libraries/plplot/default.nix index a4a554eea6ee..92d74cab93bc 100644 --- a/pkgs/development/libraries/plplot/default.nix +++ b/pkgs/development/libraries/plplot/default.nix @@ -21,11 +21,8 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - buildInputs = [ - ] - ++ lib.optional enableWX wxWidgets - ++ lib.optional enableXWin libX11 - ; + buildInputs = lib.optional enableWX wxWidgets + ++ lib.optional enableXWin libX11; passthru = { inherit diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97b1ee0721fc..87b27fa3f1f9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12858,6 +12858,12 @@ with pkgs; inherit (beam.packages.erlangR21) lfe lfe_1_3; + gnudatalanguage = callPackage ../development/interpreters/gnudatalanguage { + inherit (llvmPackages) openmp; + # MPICH currently build on Darwin + mpi = mpich; + }; + groovy = callPackage ../development/interpreters/groovy { }; inherit (callPackages ../applications/networking/cluster/hadoop { From 156e94c2c5a152fa17a8a526731d8717229bd43a Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 17 Oct 2021 09:56:30 +0000 Subject: [PATCH 13/24] python38Packages.bond-api: 0.1.13 -> 0.1.14 --- pkgs/development/python-modules/bond-api/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bond-api/default.nix b/pkgs/development/python-modules/bond-api/default.nix index 9651d7289a9b..35634b1e2417 100644 --- a/pkgs/development/python-modules/bond-api/default.nix +++ b/pkgs/development/python-modules/bond-api/default.nix @@ -9,13 +9,13 @@ buildPythonPackage rec { pname = "bond-api"; - version = "0.1.13"; + version = "0.1.14"; src = fetchFromGitHub { owner = "prystupa"; repo = "bond-api"; rev = "v${version}"; - sha256 = "0v3bwbpn98fjm8gza2k7fb7w5ps3982kfvbck5x0fh2xq2825b80"; + sha256 = "0s7an6kbib1immrbwrh4pzj812zwf8kj3kgky5k3qwxzrj0iv6ak"; }; propagatedBuildInputs = [ From 71fa2b05f61b9caaab2bb571aa2200c72801fafb Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Sun, 17 Oct 2021 22:20:54 +1100 Subject: [PATCH 14/24] rstudio: fix source revision reference --- pkgs/applications/editors/rstudio/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/rstudio/default.nix b/pkgs/applications/editors/rstudio/default.nix index d338a5b961c0..3ccdd70c455c 100644 --- a/pkgs/applications/editors/rstudio/default.nix +++ b/pkgs/applications/editors/rstudio/default.nix @@ -42,7 +42,7 @@ let src = fetchFromGitHub { owner = "rstudio"; repo = "rstudio"; - rev = version; + rev = "v${version}"; sha256 = "sha256-9c1bNsf8kJjpcZ2cMV/pPNtXQkFOntX29a1cdnXpllE="; }; From 76842da57921359a7f87c991d72462c7381f31d4 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 17 Oct 2021 12:16:54 +0000 Subject: [PATCH 15/24] auto-cpufreq: 1.6.9 -> 1.7.0 --- pkgs/tools/system/auto-cpufreq/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/auto-cpufreq/default.nix b/pkgs/tools/system/auto-cpufreq/default.nix index 427fe12267ec..9fd120b4b653 100644 --- a/pkgs/tools/system/auto-cpufreq/default.nix +++ b/pkgs/tools/system/auto-cpufreq/default.nix @@ -2,13 +2,13 @@ python3Packages.buildPythonPackage rec { pname = "auto-cpufreq"; - version = "1.6.9"; + version = "1.7.0"; src = fetchFromGitHub { owner = "AdnanHodzic"; repo = pname; rev = "v${version}"; - sha256 = "1pri182cgbrhr0adq2784gpv6q8c8kjr0jsh8wpvd1wvfsbqywrm"; + sha256 = "0b6j26glg1ffihdr2h7dlr1lrbhkclgp17dxmkjgg5gk4mhz799r"; }; propagatedBuildInputs = with python3Packages; [ click distro psutil ]; From 9763f0b83f95fd4e562c9298c7c321dff2ded901 Mon Sep 17 00:00:00 2001 From: Vanilla Date: Sun, 17 Oct 2021 19:50:35 +0800 Subject: [PATCH 16/24] clapper: add missing deps --- pkgs/applications/video/clapper/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/video/clapper/default.nix b/pkgs/applications/video/clapper/default.nix index 96358383047a..176efb799541 100644 --- a/pkgs/applications/video/clapper/default.nix +++ b/pkgs/applications/video/clapper/default.nix @@ -18,6 +18,8 @@ , gtk4 , gst_all_1 , libadwaita +, appstream-glib +, libsoup }: stdenv.mkDerivation rec { @@ -32,6 +34,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ + appstream-glib desktop-file-utils # for update-desktop-database glib gobject-introspection @@ -53,6 +56,7 @@ stdenv.mkDerivation rec { gst_all_1.gst-plugins-ugly gtk4 libadwaita + libsoup wayland wayland-protocols ]; From 8d52479bc7843cff0f291dc31da8af4f965e755d Mon Sep 17 00:00:00 2001 From: Jade Date: Mon, 11 Oct 2021 03:56:06 -0400 Subject: [PATCH 17/24] nixos/libvirtd: Add configuration option for swtpm --- nixos/modules/virtualisation/libvirtd.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index c92e1e5750ee..aef04a510ab1 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -118,6 +118,13 @@ in { OVMF package to use. ''; }; + qemuSwtpm = mkOption { + type = types.bool; + default = false; + description = '' + Allows libvirtd to use swtpm to create an emulated TPM. + ''; + }; extraOptions = mkOption { type = types.listOf types.str; @@ -257,7 +264,8 @@ in { ] ++ cfg.extraOptions); path = [ cfg.qemuPackage ] # libvirtd requires qemu-img to manage disk images - ++ optional vswitch.enable vswitch.package; + ++ optional vswitch.enable vswitch.package + ++ optional cfg.qemuSwtpm pkgs.swtpm; serviceConfig = { Type = "notify"; From 802aa64773c246c2db157f5072401a64bf9ab519 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 17 Oct 2021 15:09:44 +0000 Subject: [PATCH 18/24] catcli: 0.7.3 -> 0.7.4 --- pkgs/tools/filesystems/catcli/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/catcli/default.nix b/pkgs/tools/filesystems/catcli/default.nix index ac2f856c3c0c..7bd6265851c4 100644 --- a/pkgs/tools/filesystems/catcli/default.nix +++ b/pkgs/tools/filesystems/catcli/default.nix @@ -7,13 +7,13 @@ buildPythonApplication rec { pname = "catcli"; - version = "0.7.3"; + version = "0.7.4"; src = fetchFromGitHub { owner = "deadc0de6"; repo = pname; rev = "v${version}"; - sha256 = "03yf9sjqdg3xcbvkn1591zxd2d0r8wz1b749zrn55k3a03c7jzf5"; + sha256 = "1mzhfcf67dc5m0i9b216m58qg36g63if6273ch5bsckd0yrwdk8x"; }; propagatedBuildInputs = [ docopt anytree ]; From f2ee2ca4cef1507e950090f32e299ba7b9d8b135 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 17 Oct 2021 11:24:56 -0400 Subject: [PATCH 19/24] vimPlugins: update --- pkgs/misc/vim-plugins/generated.nix | 68 ++++++++++++++--------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 57f824dc2173..b2af7cc8fdfd 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -449,12 +449,12 @@ final: prev: chadtree = buildVimPluginFrom2Nix { pname = "chadtree"; - version = "2021-10-16"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "ms-jpq"; repo = "chadtree"; - rev = "949731d96f14872bb6764f305f38415d70c220a3"; - sha256 = "1lq4c47i55gza7mdn1nzsfxq78vkl5hhsrfv2dk97sbmbyfmr83j"; + rev = "63259154cae7c01a877cd493c7ff53d8bbaf36a8"; + sha256 = "0072yqwcs23j1q5akybc9q933lg3davrbh10rjqs690b8p69rz0p"; }; meta.homepage = "https://github.com/ms-jpq/chadtree/"; }; @@ -617,12 +617,12 @@ final: prev: cmp-nvim-lsp = buildVimPluginFrom2Nix { pname = "cmp-nvim-lsp"; - version = "2021-09-30"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "hrsh7th"; repo = "cmp-nvim-lsp"; - rev = "f93a6cf9761b096ff2c28a4f0defe941a6ffffb5"; - sha256 = "02x4jp79lll4fm34x7rjkimlx32gfp2jd1kl6zjwszbfg8wziwmx"; + rev = "accbe6d97548d8d3471c04d512d36fa61d0e4be8"; + sha256 = "1dqx6yrd60x9ncjnpja87wv5zgnij7qmzbyh5xfyslk67c0i6mwm"; }; meta.homepage = "https://github.com/hrsh7th/cmp-nvim-lsp/"; }; @@ -2964,12 +2964,12 @@ final: prev: lir-nvim = buildVimPluginFrom2Nix { pname = "lir.nvim"; - version = "2021-09-20"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "tamago324"; repo = "lir.nvim"; - rev = "bc14ddcb173d332e62ce3712eb0ca3ac6d9fa59a"; - sha256 = "1sh13m98dni9dspjiwsaafzvg3nlwd41v5ma5achpzla80hzm2h1"; + rev = "5a7b21b0fdafe73719902b9848880fb3eb8500aa"; + sha256 = "0pdswmrmc2nicii5szhig4qnmcx2cks6rc5g7s787cc0c458l98p"; }; meta.homepage = "https://github.com/tamago324/lir.nvim/"; }; @@ -3924,12 +3924,12 @@ final: prev: nvim-autopairs = buildVimPluginFrom2Nix { pname = "nvim-autopairs"; - version = "2021-10-15"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "windwp"; repo = "nvim-autopairs"; - rev = "2cab63437f05551d79ee959eb88fee1ba437a5a7"; - sha256 = "14zrgri491jshg57wcw8nf5nzviw1b6a88qkx0km1v15knihbc68"; + rev = "7becc6bc9d8baa62eb0dbf65305f8e7f1470ace7"; + sha256 = "1ihz1kci00r93f52fzz5nx9byh7rrax1sknmj9q232z1wv7dxb06"; }; meta.homepage = "https://github.com/windwp/nvim-autopairs/"; }; @@ -4140,12 +4140,12 @@ final: prev: nvim-hlslens = buildVimPluginFrom2Nix { pname = "nvim-hlslens"; - version = "2021-10-09"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "kevinhwang91"; repo = "nvim-hlslens"; - rev = "0bbfcaf40b8c3fee758eda51e728a5b7aff08412"; - sha256 = "07n8i6ggk4qnhr3zda2qpfvqfnilnnkymak1dw6f0wcjbfqdk8h6"; + rev = "5217443bb675539d87b90133a91a7e36ad1e517d"; + sha256 = "17p3x7s50r5fj1fhzx7nm7hk81h85hihk6svsgp99a1cjys6w9zk"; }; meta.homepage = "https://github.com/kevinhwang91/nvim-hlslens/"; }; @@ -4176,12 +4176,12 @@ final: prev: nvim-lightbulb = buildVimPluginFrom2Nix { pname = "nvim-lightbulb"; - version = "2021-10-16"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "kosayoda"; repo = "nvim-lightbulb"; - rev = "9838d3a0f9268d89c9f238c67928d3b6a0ceaaf5"; - sha256 = "157x2i6paqz626bvbjly5k1yg2939v6j8riicrw8gxbb3s5z5fh5"; + rev = "66223954d7bd7d4358c36d157c25503168d04319"; + sha256 = "0jghq2fkvibilb1zglkckhpmq6dgi1q87fcwpvcv9slk1qlgw19d"; }; meta.homepage = "https://github.com/kosayoda/nvim-lightbulb/"; }; @@ -4200,12 +4200,12 @@ final: prev: nvim-lspconfig = buildVimPluginFrom2Nix { pname = "nvim-lspconfig"; - version = "2021-10-16"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "neovim"; repo = "nvim-lspconfig"; - rev = "28a8e5258cb8140cc50a030b9b3c15e39376028a"; - sha256 = "02n5kacdb6my8mn0iayr5l1rm6nx4pqc6fx6a7l5minww9vh8na2"; + rev = "9661d267f64a872a451dab0453b2b951e55cef27"; + sha256 = "0hv77ridsxi5n2qibrp9a66kbmlw1c9yl8gpakr1iz2hhazq58x9"; }; meta.homepage = "https://github.com/neovim/nvim-lspconfig/"; }; @@ -5069,8 +5069,8 @@ final: prev: src = fetchFromGitHub { owner = "simrat39"; repo = "rust-tools.nvim"; - rev = "e3b0ace51db01e6fbecae489645b911a8f4b3441"; - sha256 = "0syshs383j1fhj381fy9d9chrqa11fk333c2kzak08j5l471z486"; + rev = "441e0104648e1bae89e3eac6857590a64f17583d"; + sha256 = "13g6vlg3r49vmzl0q6z2mqwz2p2chcjc74bfgn89c284bjri8x94"; }; meta.homepage = "https://github.com/simrat39/rust-tools.nvim/"; }; @@ -5644,12 +5644,12 @@ final: prev: tagalong-vim = buildVimPluginFrom2Nix { pname = "tagalong.vim"; - version = "2021-10-15"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "AndrewRadev"; repo = "tagalong.vim"; - rev = "9d37eeb2463bfa1150a9353d3bf9a4f6d7395ab9"; - sha256 = "0i2vnd0rhp5ix0p78np0vk45pnpidi1y7z6b5z8pwh442ma8f86f"; + rev = "18c010e0f28fea012f537bc1abd468a063c36b9c"; + sha256 = "0qq1saqkk0cd09zppz469idzvl5d0aagq5gw908whz5dd72yl8al"; }; meta.homepage = "https://github.com/AndrewRadev/tagalong.vim/"; }; @@ -7546,8 +7546,8 @@ final: prev: src = fetchFromGitHub { owner = "rbong"; repo = "vim-flog"; - rev = "1cb504538bf1e46b16d239cfc7fa22229dd1301b"; - sha256 = "1z5dggdjfc7fi7q58rfbh5whw7qw6jzfxbf87mlnyr9vij72v53q"; + rev = "d8e62cea4c57c9284a0d6bc92140deb1a7034a1d"; + sha256 = "0a5yh0w143lvg934pwsln2n34zh7x2d6bxfp9cmw897nl6qlzrdj"; }; meta.homepage = "https://github.com/rbong/vim-flog/"; }; @@ -7602,12 +7602,12 @@ final: prev: vim-fugitive = buildVimPluginFrom2Nix { pname = "vim-fugitive"; - version = "2021-10-16"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "tpope"; repo = "vim-fugitive"; - rev = "0615cd2baf15ed0aebacd3546015a89d491553ef"; - sha256 = "0j6hl5561jhhcbxwiwc1030ip4bzqypqnj1ycxhg3vl630d18kla"; + rev = "93f41ace7dc068cf89314bcea23bdf8da686407a"; + sha256 = "0hbif3hndmn7jll4w1kci6x3j7379wmpp9rnxg8rlbbnyxl2fpxj"; }; meta.homepage = "https://github.com/tpope/vim-fugitive/"; }; @@ -9705,12 +9705,12 @@ final: prev: vim-snippets = buildVimPluginFrom2Nix { pname = "vim-snippets"; - version = "2021-10-07"; + version = "2021-10-17"; src = fetchFromGitHub { owner = "honza"; repo = "vim-snippets"; - rev = "be519f70ab806c290a7b3d2e38fc22da07834052"; - sha256 = "0d22x0az6ca232x04mvkk9jphn3qfcz24a9wwvz0jdyy3pk8zfbi"; + rev = "c28bef69fdb26825a93ac1e90ca6f5ba19116d88"; + sha256 = "1fg60jfm5bw1m20133vl06nb8z9ckrwqq37jz493xi34j5fymi4w"; }; meta.homepage = "https://github.com/honza/vim-snippets/"; }; From 222ae15d55ff4b90c7dc2ae0ef417655d8cfaf00 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 17 Oct 2021 11:25:17 -0400 Subject: [PATCH 20/24] vimPlugins.better-escape-nvim: init at 2021-10-09 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index b2af7cc8fdfd..adb3c03b3d12 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -327,6 +327,18 @@ final: prev: meta.homepage = "https://github.com/rbgrouleff/bclose.vim/"; }; + better-escape-nvim = buildVimPluginFrom2Nix { + pname = "better-escape.nvim"; + version = "2021-10-09"; + src = fetchFromGitHub { + owner = "max397574"; + repo = "better-escape.nvim"; + rev = "a644df43e4607df2e645cb7b6f50ede79fffe477"; + sha256 = "1kjc1h35xfqgsqbg00hsvg52wkjskfilxxsxnnlimcsv9v8iadmh"; + }; + meta.homepage = "https://github.com/max397574/better-escape.nvim/"; + }; + BetterLua-vim = buildVimPluginFrom2Nix { pname = "BetterLua.vim"; version = "2020-08-14"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 6937233cf369..93e75d2cdce4 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -429,6 +429,7 @@ mattn/emmet-vim mattn/vim-gist mattn/webapi-vim matze/vim-move +max397574/better-escape.nvim maximbaz/lightline-ale MaxMEllon/vim-jsx-pretty mbbill/undotree From 1ba118f40ae227ac7545f547d0996e5000d9cd66 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 17 Oct 2021 11:25:37 -0400 Subject: [PATCH 21/24] vimPlugins.comment-nvim: init at 2021-10-17 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index adb3c03b3d12..8de5a65fdd2f 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -868,6 +868,18 @@ final: prev: meta.homepage = "https://github.com/wincent/command-t/"; }; + comment-nvim = buildVimPluginFrom2Nix { + pname = "comment.nvim"; + version = "2021-10-17"; + src = fetchFromGitHub { + owner = "numtostr"; + repo = "comment.nvim"; + rev = "a86384dc153e86a9a3cbec1436a8acfa4b07690d"; + sha256 = "043nczs67sa7i2nmmadhrd52d3yzjr1kcm3bgb4q5zig1a7r4dcj"; + }; + meta.homepage = "https://github.com/numtostr/comment.nvim/"; + }; + committia-vim = buildVimPluginFrom2Nix { pname = "committia.vim"; version = "2020-08-27"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 93e75d2cdce4..2da33d35cc70 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -519,6 +519,7 @@ norcalli/nvim-terminal.lua norcalli/snippets.nvim ntpeters/vim-better-whitespace numirias/semshi +numtostr/comment.nvim nvie/vim-flake8 nvim-lua/completion-nvim nvim-lua/diagnostic-nvim From 826f620ffe4c8202bcbf45ebe72533e5620ae567 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 17 Oct 2021 11:25:59 -0400 Subject: [PATCH 22/24] vimPlugins.telescope-cheat-nvim: init at 2021-09-24 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/overrides.nix | 4 ++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 3 files changed, 17 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 8de5a65fdd2f..d2f8e3609a08 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -5738,6 +5738,18 @@ final: prev: meta.homepage = "https://github.com/tomtom/tcomment_vim/"; }; + telescope-cheat-nvim = buildVimPluginFrom2Nix { + pname = "telescope-cheat.nvim"; + version = "2021-09-24"; + src = fetchFromGitHub { + owner = "nvim-telescope"; + repo = "telescope-cheat.nvim"; + rev = "4a58b92fc70af622ddc115f843b0e552ca5bd6ea"; + sha256 = "132drgpak97sbwjma6h7zwflg386xhqmdb3rqvzgxav36p9f0xsw"; + }; + meta.homepage = "https://github.com/nvim-telescope/telescope-cheat.nvim/"; + }; + telescope-coc-nvim = buildVimPluginFrom2Nix { pname = "telescope-coc.nvim"; version = "2021-10-13"; diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index 3fe11c3a2d88..887a0fb1778d 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -560,6 +560,10 @@ self: super: { }; }); + telescope-cheat-nvim = super.telescope-cheat-nvim.overrideAttrs (old: { + dependencies = with self; [ sqlite-lua telescope-nvim ]; + }); + telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs (old: { dependencies = with self; [ sqlite-lua telescope-nvim ]; }); diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 2da33d35cc70..90ec235376e6 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -528,6 +528,7 @@ nvim-lua/lsp_extensions.nvim nvim-lua/plenary.nvim nvim-lua/popup.nvim nvim-neorg/neorg@main +nvim-telescope/telescope-cheat.nvim nvim-telescope/telescope-dap.nvim nvim-telescope/telescope-frecency.nvim nvim-telescope/telescope-fzf-native.nvim@main From 67ef64c5cfb32382b17d02d46151bd9e504a44dd Mon Sep 17 00:00:00 2001 From: Yureka Date: Sun, 17 Oct 2021 12:01:13 +0200 Subject: [PATCH 23/24] llvm: bump min version for musl to 11+ Older LLVM versions are not building with musl right now, while 11+ works fine. --- pkgs/top-level/all-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 85a0ea292a6b..63897826c96b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12266,7 +12266,10 @@ with pkgs; /**/ if platform.isDarwin then (if platform.isAarch64 then 11 else 7) else if platform.isFreeBSD then 7 else if platform.isAndroid then 12 - else if platform.isLinux then (if platform.isRiscV then 11 else 7) + else if platform.isLinux then + /**/ if platform.isRiscV then 11 + else if platform.isMusl then 11 + else 7 else if platform.isWasm then 8 else latest_version; # We take the "max of the mins". Why? Since those are lower bounds of the From 216d735fad15c1a8b29bc6f2b8b763cded2aa2aa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Oct 2021 18:02:11 +0200 Subject: [PATCH 24/24] rates: init at 0.5.0 --- pkgs/tools/misc/rates/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/misc/rates/default.nix diff --git a/pkgs/tools/misc/rates/default.nix b/pkgs/tools/misc/rates/default.nix new file mode 100644 index 000000000000..989a9e6734ac --- /dev/null +++ b/pkgs/tools/misc/rates/default.nix @@ -0,0 +1,25 @@ +{ lib +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "rates"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "lunush"; + repo = pname; + rev = version; + sha256 = "077qxs4kwfprsai07dninkhmj3ihnghdxan98iv8gmsl3pijbgwh"; + }; + + cargoSha256 = "041sskiq152iywwqd8p7aqsqzbj359zl7ilnp8ahzdqprz3slk1w"; + + meta = with lib; { + description = "CLI tool that brings currency exchange rates right into your terminal"; + homepage = "https://github.com/lunush/rates"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b19c0e62ca19..cc6bfc62d071 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32324,6 +32324,8 @@ with pkgs; qdl = callPackage ../tools/misc/qdl { }; + rates = callPackage ../tools/misc/rates { }; + rargs = callPackage ../tools/misc/rargs { }; rancher = callPackage ../applications/networking/cluster/rancher { };