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