mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
appeditor: fix build with vala 0.46
See: https://github.com/donadigo/appeditor/issues/88
This commit is contained in:
parent
1e7ddf233a
commit
a6d3df106c
@ -40,6 +40,11 @@ stdenv.mkDerivation rec {
|
||||
libgee
|
||||
];
|
||||
|
||||
patches = [
|
||||
# See: https://github.com/donadigo/appeditor/issues/88
|
||||
./fix-build-vala-0.46.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/post_install.py
|
||||
patchShebangs meson/post_install.py
|
||||
|
22
pkgs/applications/misc/appeditor/fix-build-vala-0.46.patch
Normal file
22
pkgs/applications/misc/appeditor/fix-build-vala-0.46.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/src/DesktopApp.vala b/src/DesktopApp.vala
|
||||
index 0e6fa47..ebcde0c 100644
|
||||
--- a/src/DesktopApp.vala
|
||||
+++ b/src/DesktopApp.vala
|
||||
@@ -130,7 +130,7 @@ public class AppEditor.DesktopApp : Object {
|
||||
|
||||
public unowned string get_path () {
|
||||
if (path == null) {
|
||||
- unowned string _path = info.get_string (KeyFileDesktop.KEY_PATH);
|
||||
+ string _path = info.get_string (KeyFileDesktop.KEY_PATH);
|
||||
if (_path == null) {
|
||||
_path = "";
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public class AppEditor.DesktopApp : Object {
|
||||
}
|
||||
|
||||
public bool get_should_show () {
|
||||
- return info.should_show () && !get_terminal ();
|
||||
+ return info.should_show () && !get_terminal ();
|
||||
}
|
||||
|
||||
public string[] get_categories () {
|
Loading…
Reference in New Issue
Block a user