2013-06-18 14:35:26 +01:00
|
|
|
{ stdenv, fetchurl, yacc, flex, pkgconfig, glib, dbus, dbus_tools
|
|
|
|
, libiconvOrEmpty, libintlOrEmpty }:
|
2010-07-09 14:15:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-10 18:53:43 +00:00
|
|
|
p_name = "vala";
|
|
|
|
ver_maj = "0.19";
|
|
|
|
ver_min = "0";
|
2012-02-23 19:59:22 +00:00
|
|
|
|
2010-07-09 14:15:40 +01:00
|
|
|
src = fetchurl {
|
2013-03-10 18:53:43 +00:00
|
|
|
url = "mirror://gnome/sources/${p_name}/${ver_maj}/${name}.tar.xz";
|
|
|
|
sha256 = "1vn524hcnaggz8zx49mvf7p4z1mscrlj2syg7jjhph8nak5wi0bp";
|
2010-07-09 14:15:40 +01:00
|
|
|
};
|
2013-03-10 18:53:43 +00:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
|
|
|
|
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ yacc flex pkgconfig ];
|
2012-02-23 19:59:22 +00:00
|
|
|
|
2013-06-18 14:35:26 +01:00
|
|
|
buildInputs = [ glib ] ++ libiconvOrEmpty ++ libintlOrEmpty
|
2013-04-13 22:29:56 +01:00
|
|
|
++ stdenv.lib.optional doCheck [ dbus dbus_tools ];
|
2012-02-23 19:59:22 +00:00
|
|
|
|
2013-03-10 18:53:43 +00:00
|
|
|
doCheck = false; # problems when launching dbus tests
|
2012-02-23 19:59:22 +00:00
|
|
|
|
2010-07-09 14:15:40 +01:00
|
|
|
meta = {
|
|
|
|
description = "Compiler for the GObject type system";
|
|
|
|
homepage = "http://live.gnome.org/Vala";
|
2012-06-25 14:46:26 +01:00
|
|
|
license = "free-copyleft";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.antono ];
|
2010-07-09 14:15:40 +01:00
|
|
|
};
|
|
|
|
}
|