Skip to content

Commit

Permalink
dee: Fix build with latest Vala
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Oct 9, 2021
1 parent 5efc3e2 commit 9ec4720
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/development/libraries/dee/0001-Fix-build-with-Vala-0.54.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 7bc49f8edd9a49d675ee5b163ab61b405e2d0258 Mon Sep 17 00:00:00 2001
From: Jan Tojnar <[email protected]>
Date: Thu, 7 Oct 2021 21:42:26 +0200
Subject: [PATCH] Fix build with Vala 0.54

Vala codegen now emits constructor methods so we need to skip @new
so that we can use a custom one from our VAPI overrides.

https://gitlab.gnome.org/GNOME/vala/-/commit/472765b90cd98c1a628975d20005c46352d665f8
---
vapi/Dee-1.0.metadata | 2 ++
1 file changed, 2 insertions(+)

diff --git a/vapi/Dee-1.0.metadata b/vapi/Dee-1.0.metadata
index 7e80de0..793ffd8 100644
--- a/vapi/Dee-1.0.metadata
+++ b/vapi/Dee-1.0.metadata
@@ -1,6 +1,8 @@
GListResultSet skip
GListResultSetClass skip

+Filter
+ .new skip
FilterModel
.filter unowned
Model
--
2.33.0

1 change: 1 addition & 0 deletions pkgs/development/libraries/dee/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
"${src}/debian/patches/gtkdocize.patch"
"${src}/debian/patches/strict-prototype.patch"
"${src}/debian/patches/vapi-skip-properties.patch"
./0001-Fix-build-with-Vala-0.54.patch

# Fixes glib 2.62 deprecations
(fetchpatch {
Expand Down

0 comments on commit 9ec4720

Please sign in to comment.