2017-10-03 02:21:00 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, flex, bison, libxslt, autoconf, graphviz
|
|
|
|
, glib, libiconv, libintlOrEmpty, libtool, expat
|
2016-10-12 13:51:54 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2017-10-03 02:21:00 +02:00
|
|
|
generic = { major, minor, sha256, extraNativeBuildInputs ? [], extraBuildInputs ? [] }:
|
2016-10-12 13:51:54 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vala-${major}.${minor}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/vala/${major}/${name}.tar.xz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2017-10-03 02:21:00 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig flex bison libxslt ] ++ extraNativeBuildInputs;
|
2016-10-12 13:51:54 +02:00
|
|
|
|
2017-10-03 02:21:00 +02:00
|
|
|
buildInputs = [ glib libiconv ] ++ libintlOrEmpty ++ extraBuildInputs;
|
2016-10-12 13:51:54 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Compiler for GObject type system";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://live.gnome.org/Vala;
|
2016-10-12 13:51:54 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ antono lethalman peterhoeg ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
vala_0_23 = generic {
|
|
|
|
major = "0.23";
|
|
|
|
minor = "2";
|
|
|
|
sha256 = "0g22ss9qbm3fqhx4fxhsyfmdc5g1hgdw4dz9d37f4489kl0qf8pl";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_26 = generic {
|
|
|
|
major = "0.26";
|
|
|
|
minor = "2";
|
|
|
|
sha256 = "1i03ds1z5hivqh4nhf3x80fg7n0zd22908w5minkpaan1i1kzw9p";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_28 = generic {
|
|
|
|
major = "0.28";
|
|
|
|
minor = "0";
|
|
|
|
sha256 = "0zwpzhkhfk3piya14m7p2hl2vaabahprphppfm46ci91z39kp7hd";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_32 = generic {
|
|
|
|
major = "0.32";
|
|
|
|
minor = "1";
|
|
|
|
sha256 = "1ab1l44abf9fj1wznzq5956431ia136rl5049cggnk5393jlf3fx";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_34 = generic {
|
|
|
|
major = "0.34";
|
|
|
|
minor = "1";
|
|
|
|
sha256 = "16cjybjw100qps6jg0jdyjh8hndz8a876zmxpybnf30a8vygrk7m";
|
|
|
|
};
|
|
|
|
|
2017-10-03 02:21:00 +02:00
|
|
|
vala_0_38 = generic {
|
|
|
|
major = "0.38";
|
|
|
|
minor = "1";
|
|
|
|
sha256 = "112hl3lkcyakrk8c3qgw12gzn3nxjkvx7bn0jhl5f2m57d7k8d8h";
|
|
|
|
extraNativeBuildInputs = [ autoconf ] ++ stdenv.lib.optionals stdenv.isDarwin [ libtool expat ];
|
|
|
|
extraBuildInputs = [ graphviz ];
|
|
|
|
};
|
|
|
|
|
2016-10-12 13:51:54 +02:00
|
|
|
vala = vala_0_34;
|
|
|
|
}
|