2018-05-21 10:13:14 +01:00
|
|
|
{ stdenv, lib, fetchurl, pkgconfig, flex, bison, libxslt, autoconf, graphviz
|
2018-03-14 19:15:06 +00:00
|
|
|
, glib, libiconv, libintl, libtool, expat
|
2016-10-12 12:51:54 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2017-10-03 01:21:00 +01:00
|
|
|
generic = { major, minor, sha256, extraNativeBuildInputs ? [], extraBuildInputs ? [] }:
|
2018-05-21 10:13:14 +01:00
|
|
|
let
|
|
|
|
atLeast = lib.versionAtLeast "${major}.${minor}";
|
|
|
|
in stdenv.mkDerivation rec {
|
2016-10-12 12:51:54 +01:00
|
|
|
name = "vala-${major}.${minor}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/vala/${major}/${name}.tar.xz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2017-11-24 01:14:13 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2018-05-21 10:13:14 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig flex bison libxslt
|
|
|
|
] ++ lib.optional (stdenv.isDarwin && (atLeast "0.38")) expat
|
|
|
|
++ extraNativeBuildInputs;
|
2016-10-12 12:51:54 +01:00
|
|
|
|
2018-05-21 10:13:14 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib libiconv libintl
|
|
|
|
] ++ lib.optional (atLeast "0.38") graphviz
|
|
|
|
++ extraBuildInputs;
|
2016-10-12 12:51:54 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Compiler for GObject type system";
|
2018-03-07 04:47:38 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Vala;
|
2016-10-12 12:51:54 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
2018-03-07 04:47:38 +00:00
|
|
|
maintainers = with maintainers; [ antono jtojnar lethalman peterhoeg ];
|
2016-10-12 12:51:54 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
vala_0_26 = generic {
|
|
|
|
major = "0.26";
|
|
|
|
minor = "2";
|
|
|
|
sha256 = "1i03ds1z5hivqh4nhf3x80fg7n0zd22908w5minkpaan1i1kzw9p";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_28 = generic {
|
|
|
|
major = "0.28";
|
2017-12-18 07:27:20 +00:00
|
|
|
minor = "1";
|
|
|
|
sha256 = "0isg327w6rfqqdjja6a8pc3xcdkj7pqrkdhw48bsyxab2fkaw3hw";
|
2016-10-12 12:51:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_32 = generic {
|
|
|
|
major = "0.32";
|
|
|
|
minor = "1";
|
|
|
|
sha256 = "1ab1l44abf9fj1wznzq5956431ia136rl5049cggnk5393jlf3fx";
|
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_34 = generic {
|
|
|
|
major = "0.34";
|
2018-03-07 04:47:38 +00:00
|
|
|
minor = "17";
|
|
|
|
sha256 = "0wd2zxww4z1ys4iqz218lvzjqjjqwsaad4x2by8pcyy43sbr7qp2";
|
2017-12-18 07:27:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vala_0_36 = generic {
|
|
|
|
major = "0.36";
|
2018-05-21 10:13:14 +01:00
|
|
|
minor = "13";
|
|
|
|
sha256 = "0gxz7yisd9vh5d2889p60knaifz5zndgj98zkdfkkaykdfdq4m9k";
|
2016-10-12 12:51:54 +01:00
|
|
|
};
|
|
|
|
|
2017-10-03 01:21:00 +01:00
|
|
|
vala_0_38 = generic {
|
|
|
|
major = "0.38";
|
2018-05-21 10:13:14 +01:00
|
|
|
minor = "9";
|
|
|
|
sha256 = "1dh1qacfsc1nr6hxwhn9lqmhnq39rv8gxbapdmj1v65zs96j3fn3";
|
|
|
|
extraNativeBuildInputs = [ autoconf ] ++ lib.optional stdenv.isDarwin libtool;
|
2017-10-03 01:21:00 +01:00
|
|
|
};
|
|
|
|
|
2018-03-13 02:30:15 +00:00
|
|
|
vala_0_40 = generic {
|
|
|
|
major = "0.40";
|
2018-05-21 10:13:14 +01:00
|
|
|
minor = "6";
|
|
|
|
sha256 = "1qjbwhifwwqbdg5zilvnwm4n76g8p7jwqs3fa0biw3rylzqm193d";
|
2018-03-13 02:30:15 +00:00
|
|
|
};
|
|
|
|
|
2017-10-10 21:24:04 +01:00
|
|
|
vala = vala_0_38;
|
2016-10-12 12:51:54 +01:00
|
|
|
}
|