Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 61 lines 1.5 kB view raw
1{ stdenv, fetchurl, pkgconfig, flex, bison, libxslt 2, glib, libiconv, libintlOrEmpty 3}: 4 5let 6 generic = { major, minor, sha256 }: 7 stdenv.mkDerivation rec { 8 name = "vala-${major}.${minor}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/vala/${major}/${name}.tar.xz"; 12 inherit sha256; 13 }; 14 15 nativeBuildInputs = [ pkgconfig flex bison libxslt ]; 16 17 buildInputs = [ glib libiconv ] ++ libintlOrEmpty; 18 19 meta = with stdenv.lib; { 20 description = "Compiler for GObject type system"; 21 homepage = http://live.gnome.org/Vala; 22 license = licenses.lgpl21Plus; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ antono lethalman peterhoeg ]; 25 }; 26 }; 27 28in rec { 29 30 vala_0_23 = generic { 31 major = "0.23"; 32 minor = "2"; 33 sha256 = "0g22ss9qbm3fqhx4fxhsyfmdc5g1hgdw4dz9d37f4489kl0qf8pl"; 34 }; 35 36 vala_0_26 = generic { 37 major = "0.26"; 38 minor = "2"; 39 sha256 = "1i03ds1z5hivqh4nhf3x80fg7n0zd22908w5minkpaan1i1kzw9p"; 40 }; 41 42 vala_0_28 = generic { 43 major = "0.28"; 44 minor = "0"; 45 sha256 = "0zwpzhkhfk3piya14m7p2hl2vaabahprphppfm46ci91z39kp7hd"; 46 }; 47 48 vala_0_32 = generic { 49 major = "0.32"; 50 minor = "1"; 51 sha256 = "1ab1l44abf9fj1wznzq5956431ia136rl5049cggnk5393jlf3fx"; 52 }; 53 54 vala_0_34 = generic { 55 major = "0.34"; 56 minor = "1"; 57 sha256 = "16cjybjw100qps6jg0jdyjh8hndz8a876zmxpybnf30a8vygrk7m"; 58 }; 59 60 vala = vala_0_34; 61}