Merge pull request #291610 from vlinkz/calamares330

calamares: 3.2.62 -> 3.3.3

authored by Peder Bergebakken Sundt and committed by GitHub 860cd4b2 0e6d90c2

+42 -41
+2 -2
pkgs/tools/misc/calamares-nixos-extensions/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "calamares-nixos-extensions"; 5 - version = "0.3.14"; 5 + version = "0.3.15"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "NixOS"; 9 9 repo = "calamares-nixos-extensions"; 10 10 rev = version; 11 - hash = "sha256-wRKZ80yU3WsUkGn5/ft4wDR22s39/WTxTrjFE0/9mlc="; 11 + hash = "sha256-PZQjrteLWcInXIavuANHfzfl9gOXATWtIlDUp45j5Ao="; 12 12 }; 13 13 14 14 installPhase = ''
+2 -2
pkgs/tools/misc/calamares/default.nix
··· 7 7 8 8 mkDerivation rec { 9 9 pname = "calamares"; 10 - version = "3.2.62"; 10 + version = "3.3.3"; 11 11 12 12 # release including submodule 13 13 src = fetchurl { 14 14 url = "https://github.com/calamares/calamares/releases/download/v${version}/${pname}-${version}.tar.gz"; 15 - sha256 = "sha256-oPvOwqQ4aTdT/BdCIDVhGa1624orGcMXUYqhywJdbdA="; 15 + sha256 = "sha256-XCp2Qc2y9eF2Z0BqfTtzUkf6860KzHl1lZE7kiHZbQM="; 16 16 }; 17 17 18 18 patches = lib.optionals nixos-extensions [
+10 -11
pkgs/tools/misc/calamares/nixos-extensions-paths.patch
··· 1 1 diff --git a/src/calamares/main.cpp b/src/calamares/main.cpp 2 - index de709156f..a0b6c5faf 100644 2 + index e0491e5f9..faf272016 100644 3 3 --- a/src/calamares/main.cpp 4 4 +++ b/src/calamares/main.cpp 5 - @@ -131,6 +132,8 @@ main( int argc, char* argv[] ) 6 - // TODO: umount anything in /tmp/calamares-... as an emergency save function 5 + @@ -132,6 +132,7 @@ main( int argc, char* argv[] ) 7 6 #endif 8 7 9 - + CalamaresUtils::setNixosDirs(); 10 - + 11 - bool is_debug = handle_args( a ); 12 - 13 - #ifdef WITH_KF5DBus 8 + std::unique_ptr< KDSingleApplication > possiblyUnique; 9 + + Calamares::setNixosDirs(); 10 + const bool is_debug = handle_args( a ); 11 + if ( !is_debug ) 12 + { 14 13 diff --git a/src/libcalamares/utils/Dirs.cpp b/src/libcalamares/utils/Dirs.cpp 15 - index f333d6e64..6118fb412 100644 14 + index c42768a08..bac98645a 100644 16 15 --- a/src/libcalamares/utils/Dirs.cpp 17 16 +++ b/src/libcalamares/utils/Dirs.cpp 18 - @@ -115,6 +116,14 @@ setXdgDirs() 17 + @@ -114,6 +114,14 @@ setXdgDirs() 19 18 s_haveExtraDirs = !( s_extraConfigDirs.isEmpty() && s_extraDataDirs.isEmpty() ); 20 19 } 21 20 ··· 31 30 extraConfigDirs() 32 31 { 33 32 diff --git a/src/libcalamares/utils/Dirs.h b/src/libcalamares/utils/Dirs.h 34 - index 445cbe1f1..da869d446 100644 33 + index d0edd7a4f..26bd16b4e 100644 35 34 --- a/src/libcalamares/utils/Dirs.h 36 35 +++ b/src/libcalamares/utils/Dirs.h 37 36 @@ -50,6 +50,9 @@ DLLEXPORT bool isAppDataDirOverridden();
+9 -8
pkgs/tools/misc/calamares/nonroot.patch
··· 1 1 diff --git a/src/libcalamares/utils/Runner.cpp b/src/libcalamares/utils/Runner.cpp 2 - index c7146c2d7..e165d9a8f 100644 2 + index 632f32028..fe9052449 100644 3 3 --- a/src/libcalamares/utils/Runner.cpp 4 4 +++ b/src/libcalamares/utils/Runner.cpp 5 - @@ -140,13 +140,13 @@ Calamares::Utils::Runner::run() 5 + @@ -137,13 +137,13 @@ Calamares::Utils::Runner::run() 6 6 } 7 7 if ( m_location == RunLocation::RunInTarget ) 8 8 { ··· 21 21 22 22 if ( m_output ) 23 23 diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py 24 - index a3318d1a0..5fbe202fd 100644 24 + index 4202639f3..de2556b91 100644 25 25 --- a/src/modules/mount/main.py 26 26 +++ b/src/modules/mount/main.py 27 - @@ -152,7 +152,8 @@ def mount_partition(root_mount_point, partition, partitions): 27 + @@ -235,7 +235,8 @@ def mount_partition(root_mount_point, partition, partitions, mount_options, moun 28 28 29 29 # Ensure that the created directory has the correct SELinux context on 30 30 # SELinux-enabled systems. ··· 34 34 try: 35 35 subprocess.call(['chcon', '--reference=' + raw_mount_point, mount_point]) 36 36 except FileNotFoundError as e: 37 - @@ -193,13 +194,13 @@ def mount_partition(root_mount_point, partition, partitions): 37 + @@ -278,13 +279,13 @@ def mount_partition(root_mount_point, partition, partitions, mount_options, moun 38 38 for s in btrfs_subvolumes: 39 39 if not s["subvolume"]: 40 40 continue ··· 52 52 device = partition["device"] 53 53 54 54 diff --git a/src/modules/welcome/checker/GeneralRequirements.cpp b/src/modules/welcome/checker/GeneralRequirements.cpp 55 - index ca7219ca4..6ac682ba4 100644 55 + index a58f3df83..b66576b09 100644 56 56 --- a/src/modules/welcome/checker/GeneralRequirements.cpp 57 57 +++ b/src/modules/welcome/checker/GeneralRequirements.cpp 58 - @@ -371,10 +371,34 @@ GeneralRequirements::checkEnoughStorage( qint64 requiredSpace ) 58 + @@ -431,10 +431,35 @@ GeneralRequirements::checkEnoughStorage( qint64 requiredSpace ) 59 59 cWarning() << "GeneralRequirements is configured without libparted."; 60 60 return false; 61 61 #else ··· 88 88 + 89 89 + return false; 90 90 +} 91 - 91 + + 92 92 bool 93 93 GeneralRequirements::checkEnoughRam( qint64 requiredRam ) 94 + { 94 95 diff --git a/src/modules/welcome/checker/GeneralRequirements.h b/src/modules/welcome/checker/GeneralRequirements.h 95 96 index b6646da11..ea27324fa 100644 96 97 --- a/src/modules/welcome/checker/GeneralRequirements.h
+1 -1
pkgs/tools/misc/calamares/supportedlocale.patch
··· 1 1 diff --git a/src/modules/locale/Config.cpp b/src/modules/locale/Config.cpp 2 - index 2357019a7..75b547430 100644 2 + index 54ff5eb64..1a2b98c9c 100644 3 3 --- a/src/modules/locale/Config.cpp 4 4 +++ b/src/modules/locale/Config.cpp 5 5 @@ -48,7 +48,7 @@ loadLocales( const QString& localeGenPath )
+12 -11
pkgs/tools/misc/calamares/uimod.patch
··· 1 1 diff --git a/src/modules/finished/FinishedPage.cpp b/src/modules/finished/FinishedPage.cpp 2 - index 6c5f9ad16..24d75e07b 100644 2 + index 23cb194c4..8714937f6 100644 3 3 --- a/src/modules/finished/FinishedPage.cpp 4 4 +++ b/src/modules/finished/FinishedPage.cpp 5 - @@ -71,7 +71,10 @@ FinishedPage::retranslate() 5 + @@ -74,7 +74,10 @@ FinishedPage::retranslate() 6 6 { 7 7 ui->mainText->setText( tr( "<h1>All done.</h1><br/>" 8 8 "%1 has been set up on your computer.<br/>" 9 - - "You may now start using your new system." ) 9 + - "You may now start using your new system.", "@info" ) 10 10 + "You may now start using your new system.<br/>" 11 11 + "You can change every setting later except the bootloader.<br/>" 12 12 + "Check the <a href=\"https://nixos.org/manual/nixos/stable/\">manual</a> for instructions on how to install software, upgrade the system or enable services.<br/>" 13 - + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>") 13 + + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>", "@info" ) 14 14 .arg( branding->versionedName() ) ); 15 15 ui->restartCheckBox->setToolTip( tr( "<html><head/><body>" 16 16 "<p>When this box is checked, your system will " 17 - @@ -84,7 +87,10 @@ FinishedPage::retranslate() 17 + @@ -87,7 +90,10 @@ FinishedPage::retranslate() 18 18 ui->mainText->setText( tr( "<h1>All done.</h1><br/>" 19 19 "%1 has been installed on your computer.<br/>" 20 20 "You may now restart into your new system, or continue " 21 - - "using the %2 Live environment." ) 21 + - "using the %2 Live environment.", "@info" ) 22 22 + "using the %2 Live environment.<br/>" 23 23 + "You can change every setting later except the bootloader.<br/>" 24 24 + "Check the <a href=\"https://nixos.org/manual/nixos/stable/\">manual</a> for instructions on how to install software, upgrade the system or enable services.<br/>" 25 - + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>") 25 + + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>", "@info" ) 26 26 .arg( branding->versionedName(), branding->productName() ) ); 27 27 ui->restartCheckBox->setToolTip( tr( "<html><head/><body>" 28 28 "<p>When this box is checked, your system will " 29 29 diff --git a/src/modules/packagechooser/PackageChooserPage.cpp b/src/modules/packagechooser/PackageChooserPage.cpp 30 - index 721329c1b..164b9945e 100644 30 + index 44a570d2f..4dc931bf3 100644 31 31 --- a/src/modules/packagechooser/PackageChooserPage.cpp 32 32 +++ b/src/modules/packagechooser/PackageChooserPage.cpp 33 33 @@ -52,6 +52,7 @@ PackageChooserPage::currentChanged( const QModelIndex& index ) ··· 39 39 ui->productDescription->setText( m_introduction.description.get() ); 40 40 } 41 41 diff --git a/src/modules/packagechooser/page_package.ui b/src/modules/packagechooser/page_package.ui 42 - index d021b08b3..fecfa3060 100644 42 + index 2ab5b7f13..bed462069 100644 43 43 --- a/src/modules/packagechooser/page_package.ui 44 44 +++ b/src/modules/packagechooser/page_package.ui 45 - @@ -38,19 +38,6 @@ SPDX-License-Identifier: GPL-3.0-or-later 45 + @@ -37,20 +37,7 @@ SPDX-License-Identifier: GPL-3.0-or-later 46 + </widget> 46 47 </item> 47 48 <item> 48 49 - <layout class="QVBoxLayout" name="verticalLayout" stretch="1,30,1"> 49 - + <layout class="QVBoxLayout" name="verticalLayout" stretch="30,1,1"> 50 50 - <item> 51 51 - <widget class="QLabel" name="productName"> 52 52 - <property name="sizePolicy"> ··· 60 60 - </property> 61 61 - </widget> 62 62 - </item> 63 + + <layout class="QVBoxLayout" name="verticalLayout" stretch="30,1,1"> 63 64 <item> 64 65 <widget class="FixedAspectRatioLabel" name="productScreenshot"> 65 66 <property name="sizePolicy">
+6 -6
pkgs/tools/misc/calamares/waylandkbd.patch
··· 1 1 diff --git a/src/modules/keyboard/Config.cpp b/src/modules/keyboard/Config.cpp 2 - index 720588810..af0dd1c8d 100644 2 + index d8b1e8e86..b2e1b7b5f 100644 3 3 --- a/src/modules/keyboard/Config.cpp 4 4 +++ b/src/modules/keyboard/Config.cpp 5 - @@ -219,7 +219,10 @@ Config::xkbApply() 5 + @@ -307,7 +307,10 @@ Config::xkbApply() 6 + xkbmap_layout_args( { m_additionalLayoutInfo.additionalLayout, m_selectedLayout }, 6 7 { m_additionalLayoutInfo.additionalVariant, m_selectedVariant }, 7 8 m_additionalLayoutInfo.groupSwitcher ) ); 8 - 9 9 - 10 10 + QString xkbmap = QString( "[('xkb','%1\%2'),('xkb','%3\%4')]").arg( 11 - + m_selectedLayout, ((!m_selectedVariant.isEmpty()) ? "+" + m_selectedVariant : ""), 12 - + m_additionalLayoutInfo.additionalLayout, ((!m_additionalLayoutInfo.additionalVariant.isEmpty()) ? "+" + m_additionalLayoutInfo.additionalVariant : "")); 11 + + m_selectedLayout, ((!m_selectedVariant.isEmpty()) ? "+" + m_selectedVariant : ""), 12 + + m_additionalLayoutInfo.additionalLayout, ((!m_additionalLayoutInfo.additionalVariant.isEmpty()) ? "+" + m_additionalLayoutInfo.additionalVariant : "")); 13 13 + QProcess::execute( "sh", { "-c", "if command -v gsettings; then gsettings set org.gnome.desktop.input-sources sources \"$0\"; fi", xkbmap }); 14 14 cDebug() << "xkbmap selection changed to: " << m_selectedLayout << '-' << m_selectedVariant << "(added " 15 15 << m_additionalLayoutInfo.additionalLayout << "-" << m_additionalLayoutInfo.additionalVariant 16 16 << " since current layout is not ASCII-capable)"; 17 - @@ -227,6 +230,8 @@ Config::xkbApply() 17 + @@ -315,6 +318,8 @@ Config::xkbApply() 18 18 else 19 19 { 20 20 QProcess::execute( "setxkbmap", xkbmap_layout_args( m_selectedLayout, m_selectedVariant ) );