From 2cfa6b7312cd63b54b7ab85a4b87ed4027b74a2a Mon Sep 17 00:00:00 2001 From: oxalica Date: Tue, 30 Nov 2021 16:52:32 +0800 Subject: [PATCH 01/37] pipewire: make valgrind an optional dependency --- pkgs/development/libraries/pipewire/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index cf02589792f3..868e77298ce7 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -10,7 +10,6 @@ , docutils , doxygen , graphviz -, valgrind , glib , dbus , alsa-lib @@ -28,6 +27,8 @@ , makeFontsConf , callPackage , nixosTests +, withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind +, valgrind ? null , withMediaSession ? true , libcameraSupport ? true , libcamera @@ -121,7 +122,6 @@ let vulkan-headers vulkan-loader webrtc-audio-processing - valgrind SDL2 systemd ] ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ] @@ -131,6 +131,9 @@ let ++ lib.optional pulseTunnelSupport libpulseaudio ++ lib.optional zeroconfSupport avahi; + # Valgrind binary is required for running one optional test. + checkInputs = lib.optional withValgrind valgrind; + mesonFlags = [ "-Ddocs=enabled" "-Dudevrulesdir=lib/udev/rules.d" From f70fe35692783fdeb2ef88ce88ce0c1e3339e0dd Mon Sep 17 00:00:00 2001 From: oxalica Date: Fri, 3 Dec 2021 01:57:42 +0800 Subject: [PATCH 02/37] pipewire: get rid of all `? null` since nix is lazy --- .../libraries/pipewire/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index 868e77298ce7..54680152248d 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -28,29 +28,29 @@ , callPackage , nixosTests , withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind -, valgrind ? null +, valgrind , withMediaSession ? true , libcameraSupport ? true , libcamera , libdrm , gstreamerSupport ? true -, gst_all_1 ? null +, gst_all_1 , ffmpegSupport ? true -, ffmpeg ? null +, ffmpeg , bluezSupport ? true -, bluez ? null -, sbc ? null -, libfreeaptx ? null -, ldacbt ? null -, fdk_aac ? null +, bluez +, sbc +, libfreeaptx +, ldacbt +, fdk_aac , nativeHspSupport ? true , nativeHfpSupport ? true , ofonoSupport ? true , hsphfpdSupport ? true , pulseTunnelSupport ? true -, libpulseaudio ? null +, libpulseaudio , zeroconfSupport ? true -, avahi ? null +, avahi }: let From 1c0155e37089d45cefafe96a1d293264a7e45b4f Mon Sep 17 00:00:00 2001 From: Ward Muylaert Date: Sun, 12 Dec 2021 20:32:29 +0100 Subject: [PATCH 03/37] golden-cheetah: 3.6-DEV2107 -> 3.6-DEV2111 --- pkgs/applications/misc/golden-cheetah/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/golden-cheetah/default.nix b/pkgs/applications/misc/golden-cheetah/default.nix index 53c0a96060e7..4f411f105ce9 100644 --- a/pkgs/applications/misc/golden-cheetah/default.nix +++ b/pkgs/applications/misc/golden-cheetah/default.nix @@ -16,13 +16,13 @@ let }; in mkDerivation rec { pname = "golden-cheetah"; - version = "3.6-DEV2107"; + version = "3.6-DEV2111"; src = fetchFromGitHub { owner = "GoldenCheetah"; repo = "GoldenCheetah"; rev = "v${version}"; - sha256 = "1d54x3pv27w1ys2f5l7gnfhyijhgcgdjnq1c1mj7hvg35dmh054d"; + sha256 = "17sk89szvaq31bcv6rgfn1bbw132k7w8zlalfb3ayflavdxbk6sa"; }; buildInputs = [ From fa5eb09a66824951d2066ba34125602c65513f9b Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 13 Dec 2021 14:55:50 +0100 Subject: [PATCH 04/37] fbcat: small refactor, fix fbgrab dependencies --- pkgs/tools/misc/fbcat/default.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/fbcat/default.nix b/pkgs/tools/misc/fbcat/default.nix index 532d87de669f..d90ec77b6d5e 100644 --- a/pkgs/tools/misc/fbcat/default.nix +++ b/pkgs/tools/misc/fbcat/default.nix @@ -1,4 +1,8 @@ -{ lib, stdenv, fetchFromGitHub } : +{ lib +, stdenv +, fetchFromGitHub +, netpbm +}: stdenv.mkDerivation rec { pname = "fbcat"; @@ -11,17 +15,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-ORzcd8XGy2BfwuPK5UX+K5Z+FYkb+tdg/gHl3zHjvbk="; }; - # hardcoded because makefile target "install" depends on libxslt dependencies from network - # that are just too hard to monkeypatch here - # so this is the simple fix. - installPhase = '' - mkdir -p $out - install -d $out/bin - install -m755 fbcat $out/bin/ - install -m755 fbgrab $out/bin/ - install -d $out/share/man/man1 + postPatch = '' + substituteInPlace fbgrab \ + --replace 'pnmtopng' '${netpbm}/bin/pnmtopng' \ + --replace 'fbcat' "$out/bin/fbcat" ''; + installFlags = [ + "PREFIX=${placeholder "out"}" + ]; + meta = with lib; { homepage = "http://jwilk.net/software/fbcat"; description = "Framebuffer screenshot tool"; From 9e2b4a3e16a9ef3bc3f913f4c5187a9737226b5a Mon Sep 17 00:00:00 2001 From: Vanilla Date: Tue, 14 Dec 2021 15:55:05 +0800 Subject: [PATCH 05/37] vsce/antfu.slidev: 0.3.2 -> 0.3.3 --- pkgs/misc/vscode-extensions/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/vscode-extensions/default.nix b/pkgs/misc/vscode-extensions/default.nix index e3f971923e8f..9dea461c6768 100644 --- a/pkgs/misc/vscode-extensions/default.nix +++ b/pkgs/misc/vscode-extensions/default.nix @@ -135,8 +135,8 @@ let mktplcRef = { publisher = "antfu"; name = "slidev"; - version = "0.3.2"; - sha256 = "sha256-vzmByEiKZIkd707Bs4RGQrMII5sghYlkQI6aAJOHFcY="; + version = "0.3.3"; + sha256 = "0pqiwcvn5c8kwqlmz4ribwwra69gbiqvz41ig4fh29hkyh078rfk"; }; meta = with lib; { license = licenses.mit; From 8a5667342ebc642ebcc5111302790d4e3d275661 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 14 Dec 2021 16:13:01 +0800 Subject: [PATCH 06/37] v2ray: switch to packaged assets --- pkgs/tools/networking/v2ray/default.nix | 34 +++++-------------------- pkgs/tools/networking/v2ray/update.sh | 26 ++----------------- 2 files changed, 9 insertions(+), 51 deletions(-) diff --git a/pkgs/tools/networking/v2ray/default.nix b/pkgs/tools/networking/v2ray/default.nix index b37b98d7efc6..5990eae18409 100644 --- a/pkgs/tools/networking/v2ray/default.nix +++ b/pkgs/tools/networking/v2ray/default.nix @@ -1,5 +1,5 @@ -{ lib, fetchFromGitHub, fetchurl, linkFarm, buildGoModule, runCommand, makeWrapper, nixosTests -, assetOverrides ? {} +{ lib, fetchFromGitHub, fetchurl, symlinkJoin, buildGoModule, runCommand, makeWrapper, nixosTests +, v2ray-geoip, v2ray-domain-list-community, assets ? [ v2ray-geoip v2ray-domain-list-community ] }: let @@ -14,30 +14,10 @@ let vendorSha256 = "sha256-7zSIAKcMwtaTvokKuLJ8orqJc2jGuaw5FglEJadeZ9I="; - assets = { - # MIT licensed - "geoip.dat" = let - geoipRev = "202109300030"; - geoipSha256 = "1d2z3ljs0v9rd10cfj8cpiijz3ikkplsymr44f7y90g4dmniwqh0"; - in fetchurl { - url = "https://github.com/v2fly/geoip/releases/download/${geoipRev}/geoip.dat"; - sha256 = geoipSha256; - }; - - # MIT licensed - "geosite.dat" = let - geositeRev = "20211001023210"; - geositeSha256 = "02d55i1pdndwvmi4v42hnncjng517s0k06gr3yn5krnj2qfjli2w"; - in fetchurl { - url = "https://github.com/v2fly/domain-list-community/releases/download/${geositeRev}/dlc.dat"; - sha256 = geositeSha256; - }; - - } // assetOverrides; - - assetsDrv = linkFarm "v2ray-assets" (lib.mapAttrsToList (name: path: { - inherit name path; - }) assets); + assetsDrv = symlinkJoin { + name = "v2ray-assets"; + paths = assets; + }; core = buildGoModule rec { pname = "v2ray-core"; @@ -84,6 +64,6 @@ in runCommand "v2ray-${version}" { } '' for file in ${core}/bin/*; do makeWrapper "$file" "$out/bin/$(basename "$file")" \ - --set-default V2RAY_LOCATION_ASSET ${assetsDrv} + --set-default V2RAY_LOCATION_ASSET ${assetsDrv}/share/v2ray done '' diff --git a/pkgs/tools/networking/v2ray/update.sh b/pkgs/tools/networking/v2ray/update.sh index f645b8ea0939..9b8e4cef13a4 100755 --- a/pkgs/tools/networking/v2ray/update.sh +++ b/pkgs/tools/networking/v2ray/update.sh @@ -8,10 +8,8 @@ deps_nix=./deps.nix nixpkgs=../../../.. old_core_rev=$(sed -En 's/.*\bversion = "(.*?)".*/\1/p' "$version_nix") -old_geoip_rev=$(sed -En 's/.*\bgeoipRev = "(.*?)".*/\1/p' "$version_nix") -old_geosite_rev=$(sed -En 's/.*\bgeositeRev = "(.*?)".*/\1/p' "$version_nix") echo "Current version:" >&2 -echo "core: $old_core_rev, geoip: $old_geoip_rev, geosite: $old_geosite_rev" >&2 +echo "core: $old_core_rev" >&2 function fetch_latest_rev { curl "https://api.github.com/repos/v2fly/$1/releases" | @@ -20,10 +18,8 @@ function fetch_latest_rev { core_rev=$(fetch_latest_rev 'v2ray-core') core_rev=${core_rev:1} -geoip_rev=$(fetch_latest_rev 'geoip') -geosite_rev=$(fetch_latest_rev 'domain-list-community') echo "Latest version:" >&2 -echo "core: $core_rev, geoip: $geoip_rev, geosite: $geosite_rev" >&2 +echo "core: $core_rev" >&2 if [[ $core_rev != $old_core_rev ]]; then echo "Prefetching core..." >&2 @@ -38,24 +34,6 @@ if [[ $core_rev != $old_core_rev ]]; then "$version_nix" fi -if [[ $geoip_rev != $old_geoip_rev ]]; then - echo "Prefetching geoip..." >&2 - hash=$(nix-prefetch-url "https://github.com/v2fly/geoip/releases/download/$geoip_rev/geoip.dat") - sed --in-place \ - -e "s/\bgeoipRev = \".*\"/geoipRev = \"$geoip_rev\"/" \ - -e "s/\bgeoipSha256 = \".*\"/geoipSha256 = \"$hash\"/" \ - "$version_nix" -fi - -if [[ $geosite_rev != $old_geosite_rev ]]; then - echo "Prefetching geosite..." >&2 - hash=$(nix-prefetch-url "https://github.com/v2fly/domain-list-community/releases/download/$geosite_rev/dlc.dat") - sed --in-place \ - -e "s/\bgeositeRev = \".*\"/geositeRev = \"$geosite_rev\"/" \ - -e "s/\bgeositeSha256 = \".*\"/geositeSha256 = \"$hash\"/" \ - "$version_nix" -fi - echo "Prebuilding..." >&2 set +o pipefail vendorSha256=$( From 311c7dada33a8aa0ce651154e2692f5ed04239db Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Wed, 15 Dec 2021 01:21:39 +0100 Subject: [PATCH 07/37] gitkraken: 8.1.1 -> 8.2.0 --- pkgs/applications/version-management/gitkraken/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/version-management/gitkraken/default.nix b/pkgs/applications/version-management/gitkraken/default.nix index a92c6b5d5271..188976da3594 100644 --- a/pkgs/applications/version-management/gitkraken/default.nix +++ b/pkgs/applications/version-management/gitkraken/default.nix @@ -11,19 +11,19 @@ with lib; let curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; }; pname = "gitkraken"; - version = "8.1.1"; + version = "8.2.0"; throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}"; srcs = { x86_64-linux = fetchzip { url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz"; - sha256 = "sha256-C6R7/ucQhMsugg7qT+B8OG77AMOx2nmZlVAQcxAfpmc="; + sha256 = "sha256-id8pdkTphi3J0ZG88K7oc/O6OwAvmWyFEs9kMbleSFs="; }; x86_64-darwin = fetchzip { url = "https://release.axocdn.com/darwin/GitKraken-v${version}.zip"; - sha256 = "sha256-l0K9Ha+0KqVqNQOSouT2rwRRi4YoIjMNnZnmBY8Loa8="; + sha256 = "sha256-dwPKIXOQB3lixvMBJJRrRSamYRoC9n1rjcqi542dA44="; }; aarch64-darwin = srcs.x86_64-darwin; From 8ef21f4b411ccdc53ce99beba0fc1301dea16bcd Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Wed, 15 Dec 2021 02:11:21 +0100 Subject: [PATCH 08/37] pythonPackages.blspy: 1.0.6 -> 1.0.8 --- .../python-modules/blspy/default.nix | 17 ++++++++--------- .../blspy/dont_fetch_dependencies.patch | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/blspy/default.nix b/pkgs/development/python-modules/blspy/default.nix index 72ba6c38f847..1c491cb5de0f 100644 --- a/pkgs/development/python-modules/blspy/default.nix +++ b/pkgs/development/python-modules/blspy/default.nix @@ -2,7 +2,6 @@ , buildPythonPackage , fetchPypi , fetchFromGitHub -, fetchpatch , setuptools-scm , substituteAll , cmake @@ -14,12 +13,12 @@ buildPythonPackage rec { pname = "blspy"; - version = "1.0.6"; + version = "1.0.8"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-sULXnecEs8VI687pR9EK9jjYWlrB4tV4dt7Kzekaxb4="; + hash = "sha256-yKLirwWWeUTs5BFXZfqfuNJUXtQW40EiNPxuP+FeHso="; }; patches = [ @@ -40,12 +39,12 @@ buildPythonPackage rec { sha256 = "sha256-lGz7o6DQVAuEc7yTp8bYS2kwjzHwGaNjugDi1ruRJOA="; fetchSubmodules = true; }; - }) - - # avoid dynamic linking error at import time - (fetchpatch { - url = "https://github.com/Chia-Network/bls-signatures/pull/287/commits/797241e9dae1c164c862cbdb38c865d4b124a601.patch"; - sha256 = "sha256-tlc4aA75gUxt5OaSNZqIlO//PXjmddVgVLYuVEFNmkE="; + catch2_src = fetchFromGitHub { + owner = "catchorg"; + repo = "Catch2"; + rev = "v2.13.7"; # pinned by blspy + sha256 = "NhZ8Hh7dka7KggEKKZyEbIZahuuTYeCT7cYYSUvkPzI="; + }; }) ]; diff --git a/pkgs/development/python-modules/blspy/dont_fetch_dependencies.patch b/pkgs/development/python-modules/blspy/dont_fetch_dependencies.patch index a480c6d37083..337c8df3c4e5 100644 --- a/pkgs/development/python-modules/blspy/dont_fetch_dependencies.patch +++ b/pkgs/development/python-modules/blspy/dont_fetch_dependencies.patch @@ -48,3 +48,17 @@ index 5a8c381..d9aa940 100644 ) FetchContent_MakeAvailable(pybind11 relic) +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 449164a..15a955e 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -37,8 +37,7 @@ install(FILES $ DESTINATION lib) + if(BUILD_BLS_TESTS) + FetchContent_Declare( + Catch2 +- GIT_REPOSITORY https://github.com/catchorg/Catch2.git +- GIT_TAG v2.13.7 ++ URL @catch2_src@ + ) + FetchContent_MakeAvailable(Catch2) + add_executable(runtest test.cpp) From 9f6a86e5aa6ee6366cc13a6a005b31b61e84a2fe Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Thu, 16 Dec 2021 01:27:24 +0000 Subject: [PATCH 09/37] =?UTF-8?q?goverlay:=200.7=20=E2=86=92=200.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/tools/graphics/goverlay/default.nix | 6 ++++-- pkgs/tools/graphics/goverlay/find-xdg-data-files.patch | 10 +++++----- pkgs/top-level/all-packages.nix | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/graphics/goverlay/default.nix b/pkgs/tools/graphics/goverlay/default.nix index 11fe1a20a195..e1e5c36ee8bc 100644 --- a/pkgs/tools/graphics/goverlay/default.nix +++ b/pkgs/tools/graphics/goverlay/default.nix @@ -6,6 +6,7 @@ , fpc , lazarus-qt , wrapQtAppsHook +, breeze-qt5 , libGL , libGLU , libqt5pas @@ -37,13 +38,13 @@ let ''; in stdenv.mkDerivation rec { pname = "goverlay"; - version = "0.7"; + version = "0.7.1"; src = fetchFromGitHub { owner = "benjamimgois"; repo = pname; rev = version; - sha256 = "sha256-LdpgEfCNbf0/sY8v8D3KiapYEd23tVy4nQ7RuGwl7jM="; + sha256 = "sha256-oXkGrMHjs8uui0pzGYW8jnttet/5IX0r8eat0n5saFk="; }; outputs = [ "out" "man" ]; @@ -68,6 +69,7 @@ in stdenv.mkDerivation rec { ]; buildInputs = [ + breeze-qt5 libGL libGLU libqt5pas diff --git a/pkgs/tools/graphics/goverlay/find-xdg-data-files.patch b/pkgs/tools/graphics/goverlay/find-xdg-data-files.patch index 86f31a68dc70..17ba9ed1140e 100644 --- a/pkgs/tools/graphics/goverlay/find-xdg-data-files.patch +++ b/pkgs/tools/graphics/goverlay/find-xdg-data-files.patch @@ -1,8 +1,8 @@ diff --git a/overlayunit.pas b/overlayunit.pas -index 537491b..744f604 100644 +index 97a088d..4c42414 100644 --- a/overlayunit.pas +++ b/overlayunit.pas -@@ -5011,7 +5011,7 @@ begin +@@ -5007,7 +5007,7 @@ begin //Determine Mangohud dependency status //locate MangoHud and store result in tmp folder @@ -11,7 +11,7 @@ index 537491b..744f604 100644 // Assign Text file dependency_mangohud to variable mangohudVAR AssignFile(mangohudVAR, '/tmp/goverlay/dependency_mangohud'); -@@ -5020,7 +5020,7 @@ begin +@@ -5016,7 +5016,7 @@ begin CloseFile(mangohudVAR); // Read String and store value on mangohuddependencyVALUE based on result @@ -20,7 +20,7 @@ index 537491b..744f604 100644 mangohuddependencyVALUE := 1 else mangohuddependencyVALUE := 0; -@@ -5029,7 +5029,7 @@ begin +@@ -5025,7 +5025,7 @@ begin //Determine vkBasalt dependency staus //locate vkBasalt and store result in tmp folder @@ -29,7 +29,7 @@ index 537491b..744f604 100644 // Assign Text file dependency_mangohud to variable mangohudVAR AssignFile(vkbasaltVAR, '/tmp/goverlay/dependency_vkbasalt'); -@@ -5038,7 +5038,7 @@ begin +@@ -5034,7 +5034,7 @@ begin CloseFile(vkbasaltVAR); // Read String and store value on vkbasaltdependencyVALUE based on result diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 884890c46ac9..65ccd249998e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5999,6 +5999,7 @@ with pkgs; goverlay = callPackage ../tools/graphics/goverlay { inherit (qt5) wrapQtAppsHook; + inherit (plasma5Packages) breeze-qt5; }; gpart = callPackage ../tools/filesystems/gpart { }; From 5cfe306e16e47d481a10eb4e380460a068601a32 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 15 Dec 2021 11:38:11 +0100 Subject: [PATCH 10/37] trilium: 0.48.7 -> 0.48.8 Switch to the PNG icon, since the SVG version is not colored (the new icon is). --- pkgs/applications/office/trilium/default.nix | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/office/trilium/default.nix b/pkgs/applications/office/trilium/default.nix index 0f07dd0efd3e..8782b2288e68 100644 --- a/pkgs/applications/office/trilium/default.nix +++ b/pkgs/applications/office/trilium/default.nix @@ -19,16 +19,16 @@ let maintainers = with maintainers; [ fliegendewurst ]; }; - version = "0.48.7"; + version = "0.48.8"; desktopSource = { url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz"; - sha256 = "16clrn89mq2n30hb50y45s6qn5l7n1hj4b124wjxrkmmwpdbjwad"; + sha256 = "1dz4wdx3d1pmm3yrvipqa929f6gqilhfc3sp6xcgbn9faypp6qra"; }; serverSource = { url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz"; - sha256 = "18zwplcai4s82pdy3l30862jdl22311qh78anrjz29fm6srx1y9l"; + sha256 = "0jp1hj51x5wz27f7739nwwli119pzpskg269cxk4i04xxbhr145j"; }; in { @@ -40,15 +40,6 @@ in { src = fetchurl desktopSource; - # Fetch from source repo, no longer included in release. - # (they did special-case icon.png but we want the scalable svg) - # Use the version here to ensure we get any changes. - trilium_svg = fetchurl { - url = "https://raw.githubusercontent.com/zadam/trilium/v${version}/images/icon.svg"; - sha256 = "0sz3piskdlx267whx8r6afrdadn25bf0zmxplj1599zqkf7w7n0x"; - }; - - nativeBuildInputs = [ autoPatchelfHook makeWrapper @@ -61,12 +52,12 @@ in { runHook preInstall mkdir -p $out/bin mkdir -p $out/share/trilium - mkdir -p $out/share/{applications,icons/hicolor/scalable/apps} + mkdir -p $out/share/{applications,icons/hicolor/128x128/apps} cp -r ./* $out/share/trilium ln -s $out/share/trilium/trilium $out/bin/trilium - ln -s ${trilium_svg} $out/share/icons/hicolor/scalable/apps/trilium.svg + ln -s $out/share/trilium/icon.png $out/share/icons/hicolor/128x128/apps/trilium.png cp ${desktopItem}/share/applications/* $out/share/applications runHook postInstall ''; From 969baf2cb36e6340adfa1d50cea7b4fc665d66aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Thu, 16 Dec 2021 18:29:22 -0600 Subject: [PATCH 11/37] android-studio: add usbutils to runtime path Closes https://github.com/NixOS/nixpkgs/issues/151037 --- pkgs/applications/editors/android-studio/common.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index 1393ae943028..540c59586a6e 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -46,6 +46,7 @@ , stdenv , systemd , unzip +, usbutils , which , runCommand , xkeyboard_config @@ -102,6 +103,7 @@ let # Runtime stuff git ps + usbutils ]}" \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ From 26927f75e4ae4860c10f0d2ccfd7b6f59e12a9f7 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 17 Dec 2021 17:12:58 +0000 Subject: [PATCH 12/37] Update zinit meta information to match source --- pkgs/shells/zsh/zinit/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/shells/zsh/zinit/default.nix b/pkgs/shells/zsh/zinit/default.nix index 126ed8e67c61..9946d7d0c3a5 100644 --- a/pkgs/shells/zsh/zinit/default.nix +++ b/pkgs/shells/zsh/zinit/default.nix @@ -34,7 +34,7 @@ stdenvNoCC.mkDerivation rec { #TODO:doc output meta = with lib; { - homepage = "https://github.com/zdharma/zinit"; + homepage = "https://github.com/zdharma-continuum/zinit"; description = "Flexible zsh plugin manager"; license = licenses.mit; maintainers = with maintainers; [ pasqui23 sei40kr ]; From c169d1d5f3218e246c93e02c9229710a81008532 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 17 Dec 2021 19:54:42 +0100 Subject: [PATCH 13/37] chromiumDev: 98.0.4750.0 -> 98.0.4758.9 --- .../networking/browsers/chromium/upstream-info.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 248352015a36..1ca7fcff31b7 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -31,15 +31,15 @@ } }, "dev": { - "version": "98.0.4750.0", - "sha256": "0qygnmb1wlbarni2pdfs1xl50ggvf0211c6mj7341wwsbd0bpkgr", - "sha256bin64": "1psbh5xwlgr4ain4s9vk7d0kdbbd14v29f95ai5i4d2d3cpj2319", + "version": "98.0.4758.9", + "sha256": "1sq6v2hdhpk12w37sz7jf5vwkn72ydcqzcxysf7hs2flcfgscydj", + "sha256bin64": "1jfj08jpxji2q890zbvpvmgf5bjqgvigkr1hg8ch8vaaybs5wr04", "deps": { "gn": { - "version": "2021-12-03", + "version": "2021-12-07", "url": "https://gn.googlesource.com/gn", - "rev": "e0afadf7a743d5b14737bd454df45d5f1caf0d23", - "sha256": "00pxhfikscghgm79zckh9j00jgjmdy6hixkpfq5vmgc0xpxif78v" + "rev": "fc295f3ac7ca4fe7acc6cb5fb052d22909ef3a8f", + "sha256": "02bx3bp85kkis704gndb6jvjph7gv3ij746bq4anl30kfrkpcifh" } } }, From 9b1d476380a12faee5c8c2e62f36b5f5fb9a1bee Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 17 Dec 2021 15:39:44 -0500 Subject: [PATCH 14/37] rust-script: 0.18.0 -> 0.19.0 --- pkgs/development/tools/rust/rust-script/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/rust-script/default.nix b/pkgs/development/tools/rust/rust-script/default.nix index 947b4721b0a3..2839c2287f89 100644 --- a/pkgs/development/tools/rust/rust-script/default.nix +++ b/pkgs/development/tools/rust/rust-script/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "rust-script"; - version = "0.18.0"; + version = "0.19.0"; src = fetchFromGitHub { owner = "fornwall"; repo = pname; rev = "v${version}"; - sha256 = "sha256-B/xh0eYRJxjjIEXdxmLz6usQvo4v/HQK5VNnnjcDBjM="; + sha256 = "sha256-CYeTt6PzVGu62/GJB+gUlOXG2bs4RV0LWECF4CN3Uic="; }; - cargoSha256 = "sha256-7qMrrs6K+mJVDHNkGQDb6abM18RyBPToseTNM7ogdQ0="; + cargoSha256 = "sha256-IUzaVeOTBAOo/jkDytk6qc7VatKX75l1yZy99iSIqyE="; # tests require network access doCheck = false; From a4bcad541efd2b1df441c70cf81f05c578c9f018 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 17 Dec 2021 15:55:13 -0800 Subject: [PATCH 15/37] unifi5: Follow new mitigation guidelines Simply disabling lookups isn't enough, and the JndiLookup class must be removed: https://web.archive.org/web/20211217085954/https://logging.apache.org/log4j/2.x/security.html --- nixos/modules/services/networking/unifi.nix | 1 - pkgs/servers/unifi/default.nix | 14 +++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index e1908cf44d14..a683c537f05b 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -7,7 +7,6 @@ let @${cfg.jrePackage}/bin/java java \ ${optionalString (cfg.initialJavaHeapSize != null) "-Xms${(toString cfg.initialJavaHeapSize)}m"} \ ${optionalString (cfg.maximumJavaHeapSize != null) "-Xmx${(toString cfg.maximumJavaHeapSize)}m"} \ - ${optionalString (lib.versionOlder cfg.unifiPackage.version "6.5.54") "-Dlog4j2.formatMsgNoLookups=true"} \ -jar ${stateDir}/lib/ace.jar ''; in diff --git a/pkgs/servers/unifi/default.nix b/pkgs/servers/unifi/default.nix index b4c1d9739efd..c197ca259080 100644 --- a/pkgs/servers/unifi/default.nix +++ b/pkgs/servers/unifi/default.nix @@ -1,10 +1,9 @@ -{ lib, stdenv, dpkg, fetchurl }: +{ lib, stdenv, dpkg, fetchurl, zip }: let - generic = { version, sha256, suffix ? "" }: - stdenv.mkDerivation { + generic = { version, sha256, suffix ? "", ... } @ args: + stdenv.mkDerivation (args // { pname = "unifi-controller"; - inherit version; src = fetchurl { url = "https://dl.ubnt.com/unifi/${version}${suffix}/unifi_sysvinit_all.deb"; @@ -36,7 +35,7 @@ let platforms = platforms.unix; maintainers = with maintainers; [ erictapen globin patryk27 pennae ]; }; - }; + }); in rec { # see https://community.ui.com/releases / https://www.ui.com/download/unifi @@ -49,6 +48,11 @@ in rec { unifi5 = generic { version = "5.14.23"; sha256 = "1aar05yjm3z5a30x505w4kakbyz35i7mk7xyg0wm4ml6h94d84pv"; + + postInstall = '' + # Remove when log4j is updated to 2.12.2 or 2.16.0. + ${zip}/bin/zip -q -d $out/lib/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class + ''; }; unifi6 = generic { From 69ffb0004a2f447c6452c33483465e454504960a Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Fri, 17 Dec 2021 18:28:10 -0600 Subject: [PATCH 16/37] dockerTools.buildImage: unpack base image layers in correct order --- pkgs/build-support/docker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 9a20df57777c..1b6c340f7f0c 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -240,7 +240,7 @@ rec { # Unpack all of the parent layers into the image. lowerdir="" extractionID=0 - for layerTar in $(tac layer-list); do + for layerTar in $(cat layer-list); do echo "Unpacking layer $layerTar" extractionID=$((extractionID + 1)) From 57718902e34486288f63760faddda49ce2eecbdb Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Fri, 17 Dec 2021 19:26:53 -0600 Subject: [PATCH 17/37] nixos/tests/docker-tools: add test for pre-runAsRoot layer unpack order --- nixos/tests/docker-tools.nix | 6 ++++++ pkgs/build-support/docker/examples.nix | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix index 19ebed3ebd0b..8a240ddb17f2 100644 --- a/nixos/tests/docker-tools.nix +++ b/nixos/tests/docker-tools.nix @@ -215,6 +215,12 @@ import ./make-test-python.nix ({ pkgs, ... }: { f"docker run --rm ${examples.layersOrder.imageName} cat /tmp/layer{index}" ) + with subtest("Ensure layers unpacked in correct order before runAsRoot runs"): + assert "abc" in docker.succeed( + "docker load --input='${examples.layersUnpackOrder}'", + "docker run --rm ${examples.layersUnpackOrder.imageName} cat /layer-order" + ) + with subtest("Ensure environment variables are correctly inherited"): docker.succeed( "docker load --input='${examples.environmentVariables}'" diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index f2d4f809ae4e..941ee048666d 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -405,6 +405,29 @@ rec { created = "now"; }; + # 23. Ensure that layers are unpacked in the correct order before the + # runAsRoot script is executed. + layersUnpackOrder = + let + layerOnTopOf = parent: layerName: + pkgs.dockerTools.buildImage { + name = "layers-unpack-order-${layerName}"; + tag = "latest"; + fromImage = parent; + contents = [ pkgs.coreutils ]; + runAsRoot = '' + #!${pkgs.runtimeShell} + echo -n "${layerName}" >> /layer-order + ''; + }; + # When executing the runAsRoot script when building layer C, if layer B is + # not unpacked on top of layer A, the contents of /layer-order will not be + # "ABC". + layerA = layerOnTopOf null "a"; + layerB = layerOnTopOf layerA "b"; + layerC = layerOnTopOf layerB "c"; + in layerC; + # buildImage without explicit tag bashNoTag = pkgs.dockerTools.buildImage { name = "bash-no-tag"; From 70edac040a996d6869a0cb5378b2cb3bab737f29 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 10:34:55 +0800 Subject: [PATCH 18/37] pantheon.elementary-videos: 2.8.0 -> 2.8.1 --- pkgs/desktops/pantheon/apps/elementary-videos/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/desktops/pantheon/apps/elementary-videos/default.nix b/pkgs/desktops/pantheon/apps/elementary-videos/default.nix index faeaab7ece18..f7286c9108a6 100644 --- a/pkgs/desktops/pantheon/apps/elementary-videos/default.nix +++ b/pkgs/desktops/pantheon/apps/elementary-videos/default.nix @@ -21,15 +21,13 @@ stdenv.mkDerivation rec { pname = "elementary-videos"; - version = "2.8.0"; - - repoName = "videos"; + version = "2.8.1"; src = fetchFromGitHub { owner = "elementary"; - repo = repoName; + repo = "videos"; rev = version; - sha256 = "sha256-FFCtQ42LygfjowehwZcISWTfv8PBZTH0X8mPrpiG8Ug="; + sha256 = "sha256-Ki6i9u+oXOBTH+dVJ9RgBxszD7Wvdrfahd9abyjFYJY="; }; nativeBuildInputs = [ From 4eca6d89f9adfe8842989e94ea9813e7dd09bc9e Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 10:44:28 +0800 Subject: [PATCH 19/37] pantheon.wingpanel-indicator-notifications: 6.0.3 -> 6.0.4 --- .../desktop/wingpanel-indicators/notifications/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix index 3ebc38138795..ceabac94a236 100644 --- a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix +++ b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { pname = "wingpanel-indicator-notifications"; - version = "6.0.3"; + version = "6.0.4"; src = fetchFromGitHub { owner = "elementary"; repo = pname; rev = version; - sha256 = "sha256-iHhZJwaomQgH1Sal8uejl4QlavOQ75UKZ9xchTi1X3U="; + sha256 = "sha256-tIpR/WIhE0Mmt2EploNNDVlAX4OUNI3VnEflTLVkfSo="; }; nativeBuildInputs = [ From 62103c4e41fdcbfa3e9ee9cf424e32102ed54e72 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 10:52:35 +0800 Subject: [PATCH 20/37] pantheon.xdg-desktop-portal-pantheon: move to pkgs/desktop/pantheon Only used by Pantheon AFAIK. --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 6 +++--- pkgs/desktops/pantheon/default.nix | 2 ++ .../services}/xdg-desktop-portal-pantheon/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 2 -- 4 files changed, 8 insertions(+), 8 deletions(-) rename pkgs/{development/libraries => desktops/pantheon/services}/xdg-desktop-portal-pantheon/default.nix (94%) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 3296b7220485..980a6b939d5a 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -227,9 +227,9 @@ in environment.sessionVariables.GTK_CSD = "1"; environment.etc."gtk-3.0/settings.ini".source = "${pkgs.pantheon.elementary-default-settings}/etc/gtk-3.0/settings.ini"; - xdg.portal.extraPortals = with pkgs; [ - pantheon.elementary-files - pantheon.elementary-settings-daemon + xdg.portal.extraPortals = with pkgs.pantheon; [ + elementary-files + elementary-settings-daemon xdg-desktop-portal-pantheon ]; diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index 3300dd2ec8c4..c050576ceeeb 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -129,6 +129,8 @@ lib.makeScope pkgs.newScope (self: with self; { pantheon-agent-polkit = callPackage ./services/pantheon-agent-polkit { }; + xdg-desktop-portal-pantheon = callPackage ./services/xdg-desktop-portal-pantheon { }; + #### WINGPANEL INDICATORS wingpanel-applications-menu = callPackage ./desktop/wingpanel-indicators/applications-menu { }; diff --git a/pkgs/development/libraries/xdg-desktop-portal-pantheon/default.nix b/pkgs/desktops/pantheon/services/xdg-desktop-portal-pantheon/default.nix similarity index 94% rename from pkgs/development/libraries/xdg-desktop-portal-pantheon/default.nix rename to pkgs/desktops/pantheon/services/xdg-desktop-portal-pantheon/default.nix index 68a187418343..3ceff2095d2b 100644 --- a/pkgs/development/libraries/xdg-desktop-portal-pantheon/default.nix +++ b/pkgs/desktops/pantheon/services/xdg-desktop-portal-pantheon/default.nix @@ -8,9 +8,9 @@ , vala , wrapGAppsHook , glib +, granite , gtk3 , libhandy -, pantheon , systemd , vte }: @@ -36,9 +36,9 @@ stdenv.mkDerivation rec { buildInputs = [ glib + granite gtk3 libhandy - pantheon.granite systemd vte ]; @@ -49,7 +49,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = nix-update-script { - attrPath = pname; + attrPath = "pantheon.${pname}"; }; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7655339b5813..db467bb0e221 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29353,8 +29353,6 @@ with pkgs; xdg-desktop-portal-gtk = callPackage ../development/libraries/xdg-desktop-portal-gtk { }; - xdg-desktop-portal-pantheon = callPackage ../development/libraries/xdg-desktop-portal-pantheon { }; - xdg-desktop-portal-wlr = callPackage ../development/libraries/xdg-desktop-portal-wlr { }; xdg-user-dirs = callPackage ../tools/X11/xdg-user-dirs { }; From a51958171bdfc72248833451f62ecb5a434b0e66 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 11:03:45 +0800 Subject: [PATCH 21/37] pkgs/pantheon: format --- pkgs/desktops/pantheon/default.nix | 49 +++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index c050576ceeeb..7569b2eb4f69 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -4,23 +4,37 @@ lib.makeScope pkgs.newScope (self: with self; { switchboardPlugs = [ - switchboard-plug-a11y switchboard-plug-about - switchboard-plug-applications switchboard-plug-bluetooth - switchboard-plug-datetime switchboard-plug-display - switchboard-plug-keyboard switchboard-plug-mouse-touchpad - switchboard-plug-network switchboard-plug-notifications - switchboard-plug-onlineaccounts switchboard-plug-pantheon-shell - switchboard-plug-power switchboard-plug-printers - switchboard-plug-security-privacy switchboard-plug-sharing - switchboard-plug-sound switchboard-plug-wacom + switchboard-plug-a11y + switchboard-plug-about + switchboard-plug-applications + switchboard-plug-bluetooth + switchboard-plug-datetime + switchboard-plug-display + switchboard-plug-keyboard + switchboard-plug-mouse-touchpad + switchboard-plug-network + switchboard-plug-notifications + switchboard-plug-onlineaccounts + switchboard-plug-pantheon-shell + switchboard-plug-power + switchboard-plug-printers + switchboard-plug-security-privacy + switchboard-plug-sharing + switchboard-plug-sound + switchboard-plug-wacom ]; wingpanelIndicators = [ - wingpanel-applications-menu wingpanel-indicator-a11y - wingpanel-indicator-bluetooth wingpanel-indicator-datetime - wingpanel-indicator-keyboard wingpanel-indicator-network - wingpanel-indicator-nightlight wingpanel-indicator-notifications - wingpanel-indicator-power wingpanel-indicator-session + wingpanel-applications-menu + wingpanel-indicator-a11y + wingpanel-indicator-bluetooth + wingpanel-indicator-datetime + wingpanel-indicator-keyboard + wingpanel-indicator-network + wingpanel-indicator-nightlight + wingpanel-indicator-notifications + wingpanel-indicator-power + wingpanel-indicator-session wingpanel-indicator-sound ]; @@ -213,6 +227,13 @@ lib.makeScope pkgs.newScope (self: with self; { elementary-wallpapers = callPackage ./artwork/elementary-wallpapers { }; + ### THIRD-PARTY + + # Put packages that ONLY works with Pantheon in pkgs/desktops/pantheon/third-party, + # specfically third party switchboard plugins and wingpanel indicators. + # Please call these packages in pkgs/top-level/all-packages.nix instead of this file. + # https://github.com/NixOS/nixpkgs/issues/115222#issuecomment-906868654 + } // lib.optionalAttrs (config.allowAliases or true) { ### ALIASES From 5afe0ddcf38d57365eb42a791373594c5004c7be Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 11:05:57 +0800 Subject: [PATCH 22/37] pantheon-tweaks: move to pkgs/desktops/pantheon/third-party --- .../pantheon/third-party}/pantheon-tweaks/default.nix | 0 .../pantheon/third-party}/pantheon-tweaks/fix-paths.patch | 0 pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename pkgs/{applications/system => desktops/pantheon/third-party}/pantheon-tweaks/default.nix (100%) rename pkgs/{applications/system => desktops/pantheon/third-party}/pantheon-tweaks/fix-paths.patch (100%) diff --git a/pkgs/applications/system/pantheon-tweaks/default.nix b/pkgs/desktops/pantheon/third-party/pantheon-tweaks/default.nix similarity index 100% rename from pkgs/applications/system/pantheon-tweaks/default.nix rename to pkgs/desktops/pantheon/third-party/pantheon-tweaks/default.nix diff --git a/pkgs/applications/system/pantheon-tweaks/fix-paths.patch b/pkgs/desktops/pantheon/third-party/pantheon-tweaks/fix-paths.patch similarity index 100% rename from pkgs/applications/system/pantheon-tweaks/fix-paths.patch rename to pkgs/desktops/pantheon/third-party/pantheon-tweaks/fix-paths.patch diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db467bb0e221..61fd8102dd99 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8446,7 +8446,7 @@ with pkgs; pamtester = callPackage ../tools/security/pamtester { }; - pantheon-tweaks = callPackage ../applications/system/pantheon-tweaks { }; + pantheon-tweaks = callPackage ../desktops/pantheon/third-party/pantheon-tweaks { }; paperless-ng = callPackage ../applications/office/paperless-ng { }; From a624524e49cb09fd48d4c2cefe44ec968a95cac1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Dec 2021 04:23:51 +0000 Subject: [PATCH 23/37] python38Packages.types-requests: 2.26.1 -> 2.26.2 --- pkgs/development/python-modules/types-requests/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/types-requests/default.nix b/pkgs/development/python-modules/types-requests/default.nix index 6e89d2edd2ac..527893aed005 100644 --- a/pkgs/development/python-modules/types-requests/default.nix +++ b/pkgs/development/python-modules/types-requests/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-requests"; - version = "2.26.1"; + version = "2.26.2"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-CJPhEuFRC7tn9TeUHJIZLedHLlG/fyNuDlg4ZvDtkz4="; + sha256 = "0e22d9cdeff4c3eb068eb883d59b127c98d80525f3d0412a1c4499c6ae1f711e"; }; # Module doesn't have tests From 7cc11f76aff82d8ecfa300353e3d16711ded2843 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 Dec 2021 11:19:25 +0800 Subject: [PATCH 24/37] wingpanel-indicator-ayatana: init at unstable-2021-12-01 --- .../wingpanel-indicator-ayatana/default.nix | 58 +++++++++++++++++++ .../fix-indicator-dir.patch | 16 +++++ .../fix-libapplication-dir.patch | 13 +++++ pkgs/top-level/all-packages.nix | 2 + 4 files changed, 89 insertions(+) create mode 100644 pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix create mode 100644 pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-indicator-dir.patch create mode 100644 pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch diff --git a/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix new file mode 100644 index 000000000000..6acb1fe36f44 --- /dev/null +++ b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/default.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, substituteAll +, meson +, ninja +, pkg-config +, vala +, gtk3 +, libindicator-gtk3 +, pantheon +, indicator-application-gtk3 +}: + +stdenv.mkDerivation rec { + pname = "wingpanel-indicator-ayatana"; + version = "unstable-2021-12-01"; + + src = fetchFromGitHub { + owner = "Lafydev"; + repo = pname; + rev = "53dc05919cdba772c787620a4bee5821e38c53cd"; + sha256 = "sha256-T0OHzqENyeAr0pvXUaRMwF1RpwKVyDAF5P5G9S28COU="; + }; + + patches = [ + # Fixes install path for wingpanel indicator + # https://github.com/Lafydev/wingpanel-indicator-ayatana/pull/30 + ./fix-indicator-dir.patch + # Tells the indicator the path for libapplication.so + (substituteAll { + src = ./fix-libapplication-dir.patch; + indicator_application = indicator-application-gtk3; + }) + ]; + + nativeBuildInputs = [ + meson + ninja + pkg-config + vala + ]; + + buildInputs = [ + gtk3 + libindicator-gtk3 + pantheon.granite + pantheon.wingpanel + ]; + + meta = with lib; { + description = "Ayatana Compatibility Indicator for Wingpanel"; + homepage = "https://github.com/Lafydev/wingpanel-indicator-ayatana"; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = teams.pantheon.members; + }; +} diff --git a/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-indicator-dir.patch b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-indicator-dir.patch new file mode 100644 index 000000000000..e6f71558e3e4 --- /dev/null +++ b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-indicator-dir.patch @@ -0,0 +1,16 @@ +diff --git a/meson.build b/meson.build +index 4aeab2b..dc44e6c 100644 +--- a/meson.build ++++ b/meson.build +@@ -25,8 +25,10 @@ dependencies = { + 'wingpanel': wingpanel + } + ++libdir = join_paths(get_option('prefix'), get_option('libdir')) ++ + indicator_name = 'ayatana' +-indicator_dir = dependencies['wingpanel'].get_pkgconfig_variable('indicatorsdir') ++indicator_dir = dependencies['wingpanel'].get_pkgconfig_variable('indicatorsdir', define_variable: ['libdir', libdir]) + + # ---------------------------------------------------------------------------------------------------------------------- + # Bindings: diff --git a/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch new file mode 100644 index 000000000000..2d9a510b751e --- /dev/null +++ b/pkgs/desktops/pantheon/third-party/wingpanel-indicator-ayatana/fix-libapplication-dir.patch @@ -0,0 +1,13 @@ +diff --git a/src/IndicatorFactory.vala b/src/IndicatorFactory.vala +index 9411de0..632d83b 100644 +--- a/src/IndicatorFactory.vala ++++ b/src/IndicatorFactory.vala +@@ -24,7 +24,7 @@ public class AyatanaCompatibility.IndicatorFactory : Object, IndicatorLoader { + public Gee.Collection get_indicators () { + if (indicators == null) { + indicators = new Gee.LinkedList (); +- load_indicator (File.new_for_path (Constants.AYATANA_INDICATOR_DIR), "libapplication.so"); ++ load_indicator (File.new_for_path ("@indicator_application@/lib/indicators3/7/"), "libapplication.so"); + } + + return indicators.read_only_view; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61fd8102dd99..c8f209df116c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10921,6 +10921,8 @@ with pkgs; chase = callPackage ../tools/system/chase { }; + wingpanel-indicator-ayatana = callPackage ../desktops/pantheon/third-party/wingpanel-indicator-ayatana { }; + wimlib = callPackage ../tools/archivers/wimlib { }; wipe = callPackage ../tools/security/wipe { }; From 7cd00b0dcf44de32f8c3c06dfcd7a808a27584b2 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 23 Sep 2021 09:28:24 +0000 Subject: [PATCH 25/37] notes-up: unstable-2020-12-29 -> 2.0.6 --- pkgs/applications/office/notes-up/default.nix | 54 ++++++++++--------- pkgs/desktops/pantheon/default.nix | 4 +- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/pkgs/applications/office/notes-up/default.nix b/pkgs/applications/office/notes-up/default.nix index 1aa6f7f78e93..2f1bcab0649d 100644 --- a/pkgs/applications/office/notes-up/default.nix +++ b/pkgs/applications/office/notes-up/default.nix @@ -2,40 +2,42 @@ , stdenv , fetchFromGitHub , nix-update-script -, pantheon -, pkg-config -, vala -, cmake +, desktop-file-utils +, meson , ninja -, gtk3 -, gtksourceview3 -, webkitgtk -, gtkspell3 -, glib -, libgee -, pcre -, sqlite -, discount +, pkg-config +, python3 +, vala , wrapGAppsHook -, withPantheon ? false +, discount +, glib +, gtk3 +, gtksourceview4 +, gtkspell3 +, libgee +, pantheon +, sqlite +, webkitgtk }: stdenv.mkDerivation rec { pname = "notes-up"; - version = "unstable-2020-12-29"; + version = "2.0.6"; src = fetchFromGitHub { owner = "Philip-Scott"; repo = "Notes-up"; - rev = "2ea9f35f588769758f5d2d4436d71c4059141a6f"; - sha256 = "sha256-lKOM9+s34xYB9bF9pgip9DFu+6AaxSE4HjFVhoWtttk="; + rev = version; + sha256 = "sha256-t9BCtdWd2JLrKTcmri1Lgl5RLBYD2xWCtMxoVXz0XPk="; }; nativeBuildInputs = [ - cmake + desktop-file-utils + meson ninja - vala pkg-config + python3 + vala wrapGAppsHook ]; @@ -43,17 +45,18 @@ stdenv.mkDerivation rec { discount glib gtk3 - gtksourceview3 + gtksourceview4 gtkspell3 libgee pantheon.granite - pcre sqlite webkitgtk ]; - # Whether to build with contractor support (Pantheon specific) - cmakeFlags = lib.optional (!withPantheon) "-Dnoele=yes"; + postPatch = '' + chmod +x meson/post_install.py + patchShebangs meson/post_install.py + ''; passthru = { updateScript = nix-update-script { @@ -62,12 +65,11 @@ stdenv.mkDerivation rec { }; meta = with lib; { - description = "Markdown notes editor and manager designed for elementary OS" - + lib.optionalString withPantheon " - built with Contractor support"; + description = "Markdown notes editor and manager designed for elementary OS"; homepage = "https://github.com/Philip-Scott/Notes-up"; license = licenses.gpl2Only; maintainers = with maintainers; [ ] ++ teams.pantheon.members; platforms = platforms.linux; - mainProgram = "com.github.philip-scott.notes-up"; + mainProgram = "com.github.philip_scott.notes-up"; }; } diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index 3300dd2ec8c4..3e49d6823477 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -33,8 +33,6 @@ lib.makeScope pkgs.newScope (self: with self; { elementary-gsettings-schemas = callPackage ./desktop/elementary-gsettings-schemas { }; - notes-up = pkgs.notes-up.override { withPantheon = true; }; - touchegg = pkgs.touchegg.override { withPantheon = true; }; #### APPS @@ -223,4 +221,6 @@ lib.makeScope pkgs.newScope (self: with self; { extra-elementary-contracts = throw "extra-elementary-contracts has been removed as all contracts have been upstreamed."; # added 2021-12-01 + inherit (pkgs) notes-up; # added 2021-12-18 + }) From af2d3a995828be3bb7b652493ae3be2f14c6833f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Dec 2021 08:04:58 +0000 Subject: [PATCH 26/37] tor: 0.4.6.8 -> 0.4.6.9 --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index d6cc09acb798..a4f4f830c472 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -30,11 +30,11 @@ let in stdenv.mkDerivation rec { pname = "tor"; - version = "0.4.6.8"; + version = "0.4.6.9"; src = fetchurl { url = "https://dist.torproject.org/${pname}-${version}.tar.gz"; - sha256 = "0sj7qn6d6js6gk4vjfkc7p9g021czbfaq00yfq3mn5ycnhvimkhm"; + sha256 = "1ad99k4wysxrnlaprv7brxr2nc0h5zdnrh0rma10pqlck2037sf7"; }; outputs = [ "out" "geoip" ]; From 8bbae8e55873b31faf233cd40cf212b0b8b113c6 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 17 Dec 2021 15:55:13 -0800 Subject: [PATCH 27/37] unifi: Add NixOS tests --- nixos/tests/all-tests.nix | 1 + nixos/tests/unifi.nix | 35 ++++++++++++++++++++++++++++++++++ pkgs/servers/unifi/default.nix | 6 +++++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 nixos/tests/unifi.nix diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 5c8342f0bb7b..80645283c872 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -485,6 +485,7 @@ in ucarp = handleTest ./ucarp.nix {}; udisks2 = handleTest ./udisks2.nix {}; unbound = handleTest ./unbound.nix {}; + unifi = handleTest ./unifi.nix {}; unit-php = handleTest ./web-servers/unit-php.nix {}; upnp = handleTest ./upnp.nix {}; usbguard = handleTest ./usbguard.nix {}; diff --git a/nixos/tests/unifi.nix b/nixos/tests/unifi.nix new file mode 100644 index 000000000000..34284811abfb --- /dev/null +++ b/nixos/tests/unifi.nix @@ -0,0 +1,35 @@ +# Test UniFi controller + +{ system ? builtins.currentSystem +, config ? { allowUnfree = true; } +, pkgs ? import ../.. { inherit system config; } +}: + +with import ../lib/testing-python.nix { inherit system pkgs; }; +with pkgs.lib; + +let + makeAppTest = unifi: makeTest { + name = "unifi-controller-${unifi.version}"; + meta = with pkgs.lib.maintainers; { + maintainers = [ zhaofengli ]; + }; + + nodes.server = { + services.unifi = { + enable = true; + unifiPackage = unifi; + openFirewall = false; + }; + }; + + testScript = '' + server.wait_for_unit("unifi.service") + server.wait_until_succeeds("curl -Lk https://localhost:8443 >&2", timeout=300) + ''; + }; +in with pkgs; { + unifiLTS = makeAppTest unifiLTS; + unifi5 = makeAppTest unifi5; + unifi6 = makeAppTest unifi6; +} diff --git a/pkgs/servers/unifi/default.nix b/pkgs/servers/unifi/default.nix index c197ca259080..33f5044cb764 100644 --- a/pkgs/servers/unifi/default.nix +++ b/pkgs/servers/unifi/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, dpkg, fetchurl, zip }: +{ lib, stdenv, dpkg, fetchurl, zip, nixosTests }: let generic = { version, sha256, suffix ? "", ... } @ args: @@ -28,6 +28,10 @@ let runHook postInstall ''; + passthru.tests = { + unifi = nixosTests.unifi; + }; + meta = with lib; { homepage = "http://www.ubnt.com/"; description = "Controller for Ubiquiti UniFi access points"; From d06fdce8958638c8d33437e6d95556d49a9b1e72 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Dec 2021 08:29:46 +0000 Subject: [PATCH 28/37] vscode: 1.63.1 -> 1.63.2 --- pkgs/applications/editors/vscode/vscode.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/vscode/vscode.nix b/pkgs/applications/editors/vscode/vscode.nix index 0cf3ba1bd2c8..8990ef75a850 100644 --- a/pkgs/applications/editors/vscode/vscode.nix +++ b/pkgs/applications/editors/vscode/vscode.nix @@ -14,17 +14,17 @@ let archive_fmt = if stdenv.isDarwin then "zip" else "tar.gz"; sha256 = { - x86_64-linux = "0xn2gcvqjbj2adfwq2s0pz1n4yxg6spq4hifhvwavb34pn9yc9p9"; - x86_64-darwin = "13kgsxhjdfcdgz8xbhzpd7x1xh6am255dwxpbr03cg4p8iwfd3ig"; - aarch64-linux = "166ag0k0j8wixm3arl1ld4a4qi92ff1zvb6whhqshzdv0s39pys3"; - aarch64-darwin = "08g8qjbvlp27i37z7jcsvzgg6vm0grppnlh0jyji6lz31ksib6pz"; - armv7l-linux = "15l9kr01f0jxfi0a9dnldsjrwzv9x60ljgvmlh0zhx4h0q1x0n7l"; + x86_64-linux = "1bglf1a8b5whv9pk811fdnx0mvfcfasjxbik73p67msp4yy68lm4"; + x86_64-darwin = "0cv6i2i69xf6hn0vrfl3gk3ky7r5yvp4k7zx2k695gzck5s9bx8y"; + aarch64-linux = "1jggspj5q4vfgs4xdvx5p8qsfm98wf17jmxqzs68lmlhmhadyh22"; + aarch64-darwin = "0c1nz7a54xq20a2a4fqcmlhry6gqwz5f1ys7dx0x5whaxbybh8my"; + armv7l-linux = "0p2rdxbqpzk79ra7br7wfs8kr0hnh3l022mqb7y16gc426xjlfn4"; }.${system}; in callPackage ./generic.nix rec { # Please backport all compatible updates to the stable release. # This is important for the extension ecosystem. - version = "1.63.1"; + version = "1.63.2"; pname = "vscode"; executableName = "code" + lib.optionalString isInsiders "-insiders"; From f3bf177c8293a077cc25bc76aa87ab3549e94739 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Dec 2021 08:37:51 +0000 Subject: [PATCH 29/37] vscodium: 1.63.1 -> 1.63.2 --- pkgs/applications/editors/vscode/vscodium.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/vscode/vscodium.nix b/pkgs/applications/editors/vscode/vscodium.nix index a224c88b761b..0ca39a728424 100644 --- a/pkgs/applications/editors/vscode/vscodium.nix +++ b/pkgs/applications/editors/vscode/vscodium.nix @@ -13,10 +13,10 @@ let archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz"; sha256 = { - x86_64-linux = "1p7rbpvmllpdvghk3avg8f0xrbfhgyyj7l0ajjp0pcx24g3ijdwq"; - x86_64-darwin = "1ggcvdvciq5dkiknlxsrxkx96gj0g8vw0h2v1bj1xvv1mqjv0kwk"; - aarch64-linux = "0ypi7n99c6s99vxl78j5zw4l8jysgnz3bzch3l9yqpp1faq2zim5"; - armv7l-linux = "1rb1b4ixvm98y5s40i6qhzl6c5rv1jkbvcbwrv4s2g122j002dwn"; + x86_64-linux = "0pczrbifjgm905371i8c6bk90ka291cmny6hr1nzfix7bn5psjx0"; + x86_64-darwin = "12g2jlrhng3i56a4v9jf7nrj045jivnfdx4dhka1fiv60nn4gc46"; + aarch64-linux = "1bhhz4yvmk3zqljy3b77hlsxbwm2l675pslhwr44p6fb4hmn8fai"; + armv7l-linux = "15nbskq92b85zdyg7pgagi9mqhnbyisfkipqb3brc2rvmyxpzclb"; }.${system}; sourceRoot = { @@ -31,7 +31,7 @@ in # Please backport all compatible updates to the stable release. # This is important for the extension ecosystem. - version = "1.63.1"; + version = "1.63.2"; pname = "vscodium"; executableName = "codium"; From 86c501ac10b999435c5216bd21ef259b98be0e96 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Dec 2021 08:48:16 +0000 Subject: [PATCH 30/37] python38Packages.casbin: 1.15.1 -> 1.15.2 --- pkgs/development/python-modules/casbin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/casbin/default.nix b/pkgs/development/python-modules/casbin/default.nix index 53bebb6affa2..815bc8ae36cb 100644 --- a/pkgs/development/python-modules/casbin/default.nix +++ b/pkgs/development/python-modules/casbin/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "casbin"; - version = "1.15.1"; + version = "1.15.2"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = pname; repo = "pycasbin"; rev = "v${version}"; - sha256 = "1majsbpldsch3wgg7pdm87vk9dhqll9nk2pjjvqp8rvg93x2kkww"; + sha256 = "0mrk6b16f4ds666qa4884kjjbmb55kpfvvqsznfmyg9iii6dir50"; }; propagatedBuildInputs = [ From 0cd8847e777adaeacf4e879e9481502a4bb23627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 Dec 2021 10:00:49 +0100 Subject: [PATCH 31/37] dnscontrol: 3.13.0 -> 3.13.1 --- pkgs/applications/networking/dnscontrol/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/dnscontrol/default.nix b/pkgs/applications/networking/dnscontrol/default.nix index bf0b6c722573..92421b33a21c 100644 --- a/pkgs/applications/networking/dnscontrol/default.nix +++ b/pkgs/applications/networking/dnscontrol/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "dnscontrol"; - version = "3.13.0"; + version = "3.13.1"; src = fetchFromGitHub { owner = "StackExchange"; repo = pname; rev = "v${version}"; - sha256 = "sha256-XBpdNQHG90rJWGfXpJgXsj5AR2VhK/3+1U7Zl8XDlsw="; + sha256 = "sha256-S3/uxtrCFU9HbNhYKqOYy1ytSVi2DU/lXIlhBgNnaPg="; }; - vendorSha256 = "sha256-Ob4ZPtP14TsNOnGVfR5lFAKpJsjoJDKmiE++DqY32QA="; + vendorSha256 = "sha256-OwiZL+MBmAFtV8Vg2Wl9yAeTG3AzMSmCjefxObU7lfQ="; subPackages = [ "." ]; From a958b83425527d881a3ded7eae08b7f44d2ffc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 Dec 2021 10:09:33 +0100 Subject: [PATCH 32/37] smenu: 0.9.18 -> 0.9.19 --- pkgs/tools/misc/smenu/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/smenu/default.nix b/pkgs/tools/misc/smenu/default.nix index 5ba4164346f6..3ee4de082bd3 100644 --- a/pkgs/tools/misc/smenu/default.nix +++ b/pkgs/tools/misc/smenu/default.nix @@ -1,14 +1,14 @@ { lib, stdenv, fetchFromGitHub, ncurses }: stdenv.mkDerivation rec { - version = "0.9.18"; + version = "0.9.19"; pname = "smenu"; src = fetchFromGitHub { owner = "p-gen"; repo = "smenu"; rev = "v${version}"; - sha256 = "sha256-8ALY3dsUEJxGsDnYTOxNAmJbwmmZIV8GuHjNg0vPFUQ="; + sha256 = "sha256-0ZA8Op1IMZMJ7g1waK2uOYOCDfqPfiqnnjopGtBW1w8="; }; buildInputs = [ ncurses ]; From 3017da1633f1974043657361ef1e540fee0337ee Mon Sep 17 00:00:00 2001 From: Jonas Chevalier Date: Sat, 18 Dec 2021 11:15:07 +0100 Subject: [PATCH 33/37] treefmt: 0.2.6 -> 0.3.0 (#151110) --- pkgs/development/tools/treefmt/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/treefmt/default.nix b/pkgs/development/tools/treefmt/default.nix index 174f2273edfc..bd297154cc36 100644 --- a/pkgs/development/tools/treefmt/default.nix +++ b/pkgs/development/tools/treefmt/default.nix @@ -1,16 +1,16 @@ { lib, rustPlatform, fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "treefmt"; - version = "0.2.6"; + version = "0.3.0"; src = fetchFromGitHub { owner = "numtide"; repo = "treefmt"; rev = "v${version}"; - sha256 = "sha256-hnrMy8iYoaeWxZlhO9L1kQW3OgL6jHL1MxJpbNFLHZk="; + sha256 = "sha256-PTT87Na4KpyN6a7T49vHHhSqSOF6JSWr5/jiys1Uzko="; }; - cargoSha256 = "sha256-O7Ma6+Vniil5hIDd5JCWecTvkAjq7wMuuyfrzePDDq4="; + cargoSha256 = "sha256-Gvr6Zjd9Gvn2CyjNHlJaKPFYUViPezRwoDBeVelRlkU="; meta = { description = "one CLI to format the code tree"; From cef1694515c38c882a3cf23e0cb763495b6d2b95 Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Fri, 17 Dec 2021 01:02:05 +1000 Subject: [PATCH 34/37] mednaffe: remove gtk2 Upstream has removed support for it. --- pkgs/misc/emulators/mednaffe/default.nix | 12 +++--------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/misc/emulators/mednaffe/default.nix b/pkgs/misc/emulators/mednaffe/default.nix index e92836ae34d5..c8363b8d6041 100644 --- a/pkgs/misc/emulators/mednaffe/default.nix +++ b/pkgs/misc/emulators/mednaffe/default.nix @@ -4,8 +4,7 @@ , autoreconfHook , pkg-config , mednafen -, gtk2 ? null -, gtk3 ? null +, gtk3 , wrapGAppsHook }: @@ -21,16 +20,11 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ]; - buildInputs = [ gtk2 gtk3 mednafen ]; - - configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ]; - - dontWrapGApps = true; + buildInputs = [ gtk3 mednafen ]; postInstall = '' wrapProgram $out/bin/mednaffe \ - --prefix PATH ':' "${mednafen}/bin" \ - "''${gappsWrapperArgs[@]}" + --prefix PATH ':' "${mednafen}/bin" ''; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9b01ebc4bed..6f11b149463d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7674,9 +7674,7 @@ with pkgs; mednafen-server = callPackage ../misc/emulators/mednafen/server.nix { }; - mednaffe = callPackage ../misc/emulators/mednaffe { - gtk2 = null; - }; + mednaffe = callPackage ../misc/emulators/mednaffe { }; megacli = callPackage ../tools/misc/megacli { }; From 4b18165b53a21ab83179a304d03c7b39301c8de7 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 16 Dec 2021 15:20:29 +0800 Subject: [PATCH 35/37] SDL_image: use pkg-config --- pkgs/development/libraries/SDL_image/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/SDL_image/default.nix b/pkgs/development/libraries/SDL_image/default.nix index d6424575a764..30f71bd3e520 100644 --- a/pkgs/development/libraries/SDL_image/default.nix +++ b/pkgs/development/libraries/SDL_image/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, giflib, libXpm }: +{ lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, giflib, libXpm, pkg-config }: stdenv.mkDerivation rec { pname = "SDL_image"; @@ -25,6 +25,7 @@ stdenv.mkDerivation rec { "--disable-tif-shared" ] ++ lib.optional stdenv.isDarwin "--disable-sdltest"; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ SDL libpng libjpeg libtiff giflib libXpm ]; meta = with lib; { From 1c93b890460edb2c0a6e8de063d7024a814c1bc6 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 16 Dec 2021 15:21:55 +0800 Subject: [PATCH 36/37] SDL_net: use pkg-config --- pkgs/development/libraries/SDL_net/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/SDL_net/default.nix b/pkgs/development/libraries/SDL_net/default.nix index f55332a0ee0e..e902213c9710 100644 --- a/pkgs/development/libraries/SDL_net/default.nix +++ b/pkgs/development/libraries/SDL_net/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, SDL }: +{ lib, stdenv, fetchurl, SDL, pkg-config }: stdenv.mkDerivation rec { pname = "SDL_net"; @@ -11,6 +11,7 @@ stdenv.mkDerivation rec { configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + nativeBuildInputs = [ pkg-config ]; propagatedBuildInputs = [ SDL ]; meta = with lib; { From d76192f94eb101de90bde4c38ae06587e9fde535 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 16 Dec 2021 15:54:55 +0800 Subject: [PATCH 37/37] SDL_mixer: use pkg-config --- pkgs/development/libraries/SDL_mixer/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/SDL_mixer/default.nix b/pkgs/development/libraries/SDL_mixer/default.nix index 291e9790e442..91e9f0a3edf0 100644 --- a/pkgs/development/libraries/SDL_mixer/default.nix +++ b/pkgs/development/libraries/SDL_mixer/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchurl , SDL, libogg, libvorbis, smpeg, libmikmod -, fluidsynth +, fluidsynth, pkg-config , enableNativeMidi ? false }: @@ -13,6 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n"; }; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ]; configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]