Skip to content

Commit 88cb862

Browse files
authored
lomiri.telephony-service: Fix NotificationInterface build issue (NixOS#363936)
2 parents f0a890d + 3bac114 commit 88cb862

File tree

1 file changed

+18
-0
lines changed
  • pkgs/desktops/lomiri/services/telephony-service

1 file changed

+18
-0
lines changed

pkgs/desktops/lomiri/services/telephony-service/default.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
fetchpatch,
66
gitUpdater,
77
nixosTests,
8+
runCommand,
89
ayatana-indicator-messages,
910
bash,
1011
cmake,
@@ -73,6 +74,23 @@ stdenv.mkDerivation (finalAttrs: {
7374
url = "https://gitlab.com/ubports/development/core/lomiri-telephony-service/-/commit/3a387670ed13041db069068292b1f41229e79583.patch";
7475
hash = "sha256-b7gxzr6Mmtogclq3hR7a/zl+816H2wmJqv3oHjUJggw=";
7576
})
77+
78+
# Remove when version > 0.5.3
79+
# Patched to be compatible with pre-rename code
80+
(runCommand "0004-lomiri-telephony-service-Fix-NotificationInterface-regeneration-backported.patch"
81+
{
82+
src = fetchpatch {
83+
name = "0004-lomiri-telephony-service-Fix-NotificationInterface-regeneration.patch";
84+
url = "https://gitlab.com/ubports/development/core/lomiri-telephony-service/-/commit/9533ce1a9495e5c11e9b78fc0166e903e19519b4.patch";
85+
hash = "sha256-3rsZ08bz2CxKpcwYWCCd6f7gJ22v9jl7Lg7JPnWz50A=";
86+
};
87+
}
88+
''
89+
cp $src $out
90+
substituteInPlace $out \
91+
--replace-fail 'lomiritelephony' 'telephony'
92+
''
93+
)
7694
];
7795

7896
postPatch =

0 commit comments

Comments
 (0)