vocal: fix build with vala 0.56

This commit is contained in:
Bobby Rong 2022-03-19 16:42:17 +08:00
parent 2e80b3ffab
commit 8523b08ea6
No known key found for this signature in database
GPG key ID: ED07364437C91161

View file

@ -72,6 +72,13 @@ stdenv.mkDerivation rec {
})
];
postPatch = ''
# Fix build with vala 0.56
# https://github.com/needle-and-thread/vocal/pull/503
substituteInPlace src/Vocal.vala \
--replace "public const OptionEntry[] app_options" "private const OptionEntry[] app_options"
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;