mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
lomiri.lomiri-clock-app: 4.0.4 -> 4.1.0
This commit is contained in:
parent
72dd60d9cf
commit
3e59945443
@ -2,7 +2,6 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
fetchpatch,
|
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
cmake,
|
cmake,
|
||||||
@ -27,72 +26,15 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "lomiri-clock-app";
|
pname = "lomiri-clock-app";
|
||||||
version = "4.0.4";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "ubports";
|
owner = "ubports";
|
||||||
repo = "development/apps/lomiri-clock-app";
|
repo = "development/apps/lomiri-clock-app";
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-IWNLMYrebYQe5otNwZtRUs4YGPo/5OFic3Nh2pWxROs=";
|
hash = "sha256-bYnAdlpY2Ka08hrJOyqW8+VbCTOi0NNrW+8MHLF7+2E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Fix GNUInstallDirs variables usage
|
|
||||||
# Remove when version > 4.0.4
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0002-lomiri-clock-app-Fix-GNUInstallDirs-variable-concatenations-in-CMake.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/33c62d0382f69462de0567628d7a6ef162944e12.patch";
|
|
||||||
hash = "sha256-JEoRjc6RugtznNtgJsXz9wnAL/7fkoog40EVl7uu2pc=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Fix installation of splash icon
|
|
||||||
# Remove when version > 4.0.4
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0003-lomiri-clock-app-Fix-splash-file-installation-in-non-clock-mode.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/97fd6fd91ee787dfe107bd36bc895f2ff234b5e3.patch";
|
|
||||||
hash = "sha256-g9eR6yYgKFDohuZMs1Ub0TwPM2AWbwWLDvZMrT4gMls=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Port from qmlscene to dedicated C++ entry, and apply abunch of fixes that this move enables
|
|
||||||
# Remove when https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/merge_requests/217 merged & in release
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0004-lomiri-clock-app-Migrate-to-C++-app.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/c690d65baf2d28f99364dec2244f8d4ebdb09178.patch";
|
|
||||||
hash = "sha256-JCQFlHFAXbgiSGNtEsq/khblhAD/3BdE68Qctn7j5T0=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0005-lomiri-clock-app-Call-i18n.bindtextdomain-and-fix-app-icon-load.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/0619730ca639228b1c0a3403082a6a13e2fe3ff3.patch";
|
|
||||||
hash = "sha256-NQQYvJ141fU2iQ+xzYoNkuuzvqQg1BGZNGq24u8i1is=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0006-lomiri-clock-app-Pass-through-project-version.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/ae1467fe44813eef2fc6cc4b9d6ddc02edee7640.patch";
|
|
||||||
hash = "sha256-E6yk5H+YVH4oSg6AIAJ+Rynu0HFkNomX7sTjM/x37PU=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0007-lomiri-clock-app-Fix-tests-after-module-changes.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/40cbd7847c4a850184e553ac5b8981672b7deed0.patch";
|
|
||||||
hash = "sha256-AA4KRYZNBQ0/Nk65kyzzDFhs/zWO7fb5f2Toy1diPBg=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Don't ignore PATH when looking for qmltestrunner, saves us a patch for hardcoded fallback
|
|
||||||
# Remove when version > 4.0.4
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0008-lomiri-clock-app-tests-Drop-NO_DEFAULT_PATH.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/190ef47e2efaaf139920d0556e0522f95479ea95.patch";
|
|
||||||
hash = "sha256-jy4E+VfVyRu99eGqbhlYi/xjDgPajozHPSlqEcGVOA4=";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Make tests honour BUILD_TESTING
|
|
||||||
# Remove when https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/merge_requests/219 merged & in release
|
|
||||||
(fetchpatch {
|
|
||||||
name = "0009-lomiri-clock-app-tests-Honour-BUILD_TESTING.patch";
|
|
||||||
url = "https://gitlab.com/ubports/development/apps/lomiri-clock-app/-/commit/b0ca583238f011e23a99286a1d2b61f2dcd85303.patch";
|
|
||||||
hash = "sha256-TyM5Y8BRAqinvZiZ5TEXd5caVesFluPi6iGmTS1wRlI=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# QT_IMPORTS_DIR returned by qmake -query is broken
|
# QT_IMPORTS_DIR returned by qmake -query is broken
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
|
Loading…
Reference in New Issue
Block a user