vala: add setup hook

Add datadir containing vapidir to XDG_DATA_DIRS and move vapipdir to dev output.
This commit is contained in:
Jan Tojnar
2019-01-20 04:06:20 +01:00
parent b766ec29a7
commit 79ca7f4cb4
2 changed files with 21 additions and 1 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, flex, bison, libxslt, autoconf, automake, autoreconfHook
, graphviz, glib, libiconv, libintl, libtool, expat
, graphviz, glib, libiconv, libintl, libtool, expat, substituteAll
}:
let
@@ -45,6 +45,11 @@ let
name = "vala-${version}";
version = "${major}.${minor}";
setupHook = substituteAll {
src = ./setup-hook.sh;
apiVersion = major;
};
src = fetchurl {
url = "mirror://gnome/sources/vala/${major}/${name}.tar.xz";
inherit sha256;