From 3dc58eda52ef935313cd0418264abd1d30d6b4d3 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Wed, 2 Oct 2019 19:29:05 -0400 Subject: cawbird: fix build with vala 0.46 --- pkgs/applications/networking/cawbird/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/networking/cawbird') diff --git a/pkgs/applications/networking/cawbird/default.nix b/pkgs/applications/networking/cawbird/default.nix index edcf9b2846ed..51657659b95a 100644 --- a/pkgs/applications/networking/cawbird/default.nix +++ b/pkgs/applications/networking/cawbird/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, glib, gtk3, json-glib, sqlite, libsoup, gettext, vala , meson, ninja, pkgconfig, gnome3, gst_all_1, wrapGAppsHook, gobject-introspection -, glib-networking, python3 }: +, glib-networking, python3, fetchpatch }: stdenv.mkDerivation rec { version = "1.0.1"; @@ -22,6 +22,14 @@ stdenv.mkDerivation rec { glib gtk3 json-glib sqlite libsoup gettext gnome3.dconf gnome3.gspell glib-networking ] ++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-bad (gst-plugins-good.override { gtkSupport = true; }) gst-libav ]); + patches = [ + # Fix build with vala 0.46 + (fetchpatch { + url = "https://github.com/IBBoard/cawbird/commit/7b88f8856d108b9555ba7b855c7daed7b9e745ca.patch"; + sha256 = "10kfdy91yas4xyz0hd057q6nsqfrkljcj7pql81xgm43qaff31y0"; + }) + ]; + postPatch = '' chmod +x data/meson_post_install.py # patchShebangs requires executable file patchShebangs data/meson_post_install.py -- cgit v1.2.3