From 4262c4bb9d5dcf712959de3ce0f579f870db5860 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Tue, 7 Jan 2014 17:31:52 +0800 Subject: [PATCH] vala: update to 0.23.1, remove old versions set license to lgpl2Plus add myself to maintainers and some cleanup --- pkgs/development/compilers/vala/15.2.nix | 24 ----------- pkgs/development/compilers/vala/16.1.nix | 24 ----------- pkgs/development/compilers/vala/default.nix | 48 ++++++++++----------- pkgs/top-level/all-packages.nix | 8 +--- pkgs/top-level/release-python.nix | 2 - 5 files changed, 25 insertions(+), 81 deletions(-) delete mode 100644 pkgs/development/compilers/vala/15.2.nix delete mode 100644 pkgs/development/compilers/vala/16.1.nix diff --git a/pkgs/development/compilers/vala/15.2.nix b/pkgs/development/compilers/vala/15.2.nix deleted file mode 100644 index 529ccea6bc80..000000000000 --- a/pkgs/development/compilers/vala/15.2.nix +++ /dev/null @@ -1,24 +0,0 @@ -{stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: - -stdenv.mkDerivation rec { - - version = "0.15.2"; - name = "vala-${version}"; - - src = fetchurl { - url = "mirror://gnome/sources/vala/0.15/${name}.tar.xz"; - sha256 = "0g71zq6dpqrw2f40wfzdf18fdw41ymr17laqniy2kr622hkxdi8w"; - }; - - nativeBuildInputs = [ yacc flex pkgconfig xz ]; - - buildInputs = [ glib ]; - - meta = { - description = "Compiler for the GObject type system"; - homepage = "http://live.gnome.org/Vala"; - license = "free-copyleft"; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.antono ]; - }; -} diff --git a/pkgs/development/compilers/vala/16.1.nix b/pkgs/development/compilers/vala/16.1.nix deleted file mode 100644 index f054c59d2e4b..000000000000 --- a/pkgs/development/compilers/vala/16.1.nix +++ /dev/null @@ -1,24 +0,0 @@ -{stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: - -stdenv.mkDerivation rec { - - version = "0.16.1"; - name = "vala-${version}"; - - src = fetchurl { - url = "mirror://gnome/sources/vala/0.16/${name}.tar.xz"; - sha256 = "1n708n9ixyy9qrzyv1wf4ybvcclx43ib9ki028wwpvkz6kv8zqlb"; - }; - - nativeBuildInputs = [ yacc flex pkgconfig xz ]; - - buildInputs = [ glib ]; - - meta = { - description = "Compiler for the GObject type system"; - homepage = "http://live.gnome.org/Vala"; - license = "free-copyleft"; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.antono ]; - }; -} diff --git a/pkgs/development/compilers/vala/default.nix b/pkgs/development/compilers/vala/default.nix index 9af30230757e..ae0692801437 100644 --- a/pkgs/development/compilers/vala/default.nix +++ b/pkgs/development/compilers/vala/default.nix @@ -1,31 +1,31 @@ -{ stdenv, fetchurl, yacc, flex, pkgconfig, glib, dbus, dbus_tools -, libiconvOrEmpty, libintlOrEmpty }: +{ stdenv, fetchurl, pkgconfig, flex, bison, libxslt +, glib, libiconvOrEmpty, libintlOrEmpty +}: +let + major = "0.23"; + minor = "1"; + sha256 = "1m8f2d01r4jqp266mk29qsl68lzh7c258cqd5zzbpbryxszlzdfj"; +in stdenv.mkDerivation rec { - p_name = "vala"; - ver_maj = "0.19"; - ver_min = "0"; - - src = fetchurl { - url = "mirror://gnome/sources/${p_name}/${ver_maj}/${name}.tar.xz"; - sha256 = "1vn524hcnaggz8zx49mvf7p4z1mscrlj2syg7jjhph8nak5wi0bp"; - }; - name = "${p_name}-${ver_maj}.${ver_min}"; - - postPatch = "patchShebangs ."; - - nativeBuildInputs = [ yacc flex pkgconfig ]; - - buildInputs = [ glib ] ++ libiconvOrEmpty ++ libintlOrEmpty - ++ stdenv.lib.optional doCheck [ dbus dbus_tools ]; - - doCheck = false; # problems when launching dbus tests + name = "vala-${major}.${minor}"; meta = { - description = "Compiler for the GObject type system"; + description = "Compiler for GObject type system"; homepage = "http://live.gnome.org/Vala"; - license = "free-copyleft"; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.antono ]; + license = stdenv.lib.licenses.gpl21Plus; + platforms = stdenv.lib.platforms.unix; + maintainers = with stdenv.lib.maintainers; [ antono iyzsong ]; }; + + src = fetchurl { + url = "mirror://gnome/sources/vala/${major}/${name}.tar.xz"; + inherit sha256; + }; + + nativeBuildInputs = [ pkgconfig flex bison libxslt ]; + + buildInputs = [ glib ] + ++ libiconvOrEmpty + ++ libintlOrEmpty; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4b76f4b02368..abbb46b46b1d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3128,13 +3128,7 @@ let urweb = callPackage ../development/compilers/urweb { }; - vala = vala19; - - vala15 = callPackage ../development/compilers/vala/15.2.nix { }; - - vala16 = callPackage ../development/compilers/vala/16.1.nix { }; - - vala19 = callPackage ../development/compilers/vala/default.nix { }; + vala = callPackage ../development/compilers/vala/default.nix { }; visualcpp = callPackage ../development/compilers/visual-c++ { }; diff --git a/pkgs/top-level/release-python.nix b/pkgs/top-level/release-python.nix index 74778c57fe82..b56c7af6e037 100644 --- a/pkgs/top-level/release-python.nix +++ b/pkgs/top-level/release-python.nix @@ -1697,8 +1697,6 @@ let v8 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; vacuum = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; vala = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; - vala15 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; - vala16 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; valgrind = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; valkyrie = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; vde2 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };