22 stdenv ,
33 lib ,
44 fetchFromGitLab ,
5- fetchpatch ,
65 gitUpdater ,
76 testers ,
87 accountsservice ,
4948
5049stdenv . mkDerivation ( finalAttrs : {
5150 pname = "lomiri-system-settings-unwrapped" ;
52- version = "1.3.0 " ;
51+ version = "1.3.2 " ;
5352
5453 src = fetchFromGitLab {
5554 owner = "ubports" ;
5655 repo = "development/core/lomiri-system-settings" ;
57- rev = finalAttrs . version ;
58- hash = "sha256-8X5a2zJ0y8bSSnbqDvRoYm/2VPAWcfZZuiH+5p8eXi4 =" ;
56+ tag = finalAttrs . version ;
57+ hash = "sha256-bVBxJgOy1eXqwzcgBRUTlFoJxxw9I1Qc+Wn92U0QzA4 =" ;
5958 } ;
6059
6160 outputs = [
@@ -64,14 +63,6 @@ stdenv.mkDerivation (finalAttrs: {
6463 ] ;
6564
6665 patches = [
67- # Fixes compat with newer ICU
68- # Remove when version > 1.3.0
69- ( fetchpatch {
70- name = "0001-lomiri-system-settings-unwrapped-Unpin-Cxx-standard.patch" ;
71- url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/c0b1c773237b28ea50850810b8844033b13fb666.patch" ;
72- hash = "sha256-M73gQxstKyuzzx1VxdOiNYyfQbSZPIy2gxiCtKcdS1M=" ;
73- } )
74-
7566 ./2000-Support-wrapping-for-Nixpkgs.patch
7667 ] ;
7768
@@ -80,8 +71,6 @@ stdenv.mkDerivation (finalAttrs: {
8071 --replace-fail "\'' ${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\'' ${CMAKE_INSTALL_PREFIX}/${ qtbase . qtQmlPrefix } " \
8172
8273 # Port from lomiri-keyboard to maliit-keyboard
83- substituteInPlace plugins/language/CMakeLists.txt \
84- --replace-fail 'LOMIRI_KEYBOARD_PLUGIN_PATH=\"'' ${CMAKE_INSTALL_FULL_LIBDIR}/lomiri-keyboard/plugins\"' 'LOMIRI_KEYBOARD_PLUGIN_PATH=\"${ lib . getLib maliit-keyboard } /lib/maliit/keyboard2/languages\"'
8574 substituteInPlace plugins/language/{PageComponent,SpellChecking,ThemeValues}.qml plugins/language/onscreenkeyboard-plugin.cpp plugins/sound/PageComponent.qml \
8675 --replace-fail 'com.lomiri.keyboard.maliit' 'org.maliit.keyboard.maliit'
8776
@@ -164,6 +153,7 @@ stdenv.mkDerivation (finalAttrs: {
164153 cmakeFlags = [
165154 ( lib . cmakeBool "ENABLE_LIBDEVICEINFO" true )
166155 ( lib . cmakeBool "ENABLE_TESTS" finalAttrs . finalPackage . doCheck )
156+ ( lib . cmakeFeature "LOMIRI_KEYBOARD_PLUGIN_PATH" "${ lib . getLib maliit-keyboard } /lib/maliit/keyboard2/languages" )
167157 ] ;
168158
169159 # The linking for this normally ignores missing symbols, which is inconvenient for figuring out why subpages may be
@@ -207,7 +197,9 @@ stdenv.mkDerivation (finalAttrs: {
207197 meta = with lib ; {
208198 description = "System Settings application for Lomiri" ;
209199 homepage = "https://gitlab.com/ubports/development/core/lomiri-system-settings" ;
210- changelog = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/blob/${ finalAttrs . version } /ChangeLog" ;
200+ changelog = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/blob/${
201+ if ( ! builtins . isNull finalAttrs . src . tag ) then finalAttrs . src . tag else finalAttrs . src . rev
202+ } /ChangeLog" ;
211203 license = licenses . gpl3Only ;
212204 mainProgram = "lomiri-system-settings" ;
213205 teams = [ teams . lomiri ] ;
0 commit comments