Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchFromGitHub 4, nix-update-script 5, meson 6, ninja 7, pkg-config 8, scdoc 9, gnome-builder 10, glib 11, libgee 12, json-glib 13, jsonrpc-glib 14, vala 15}: 16 17stdenv.mkDerivation rec { 18 pname = "vala-language-server"; 19 version = "0.48.7"; 20 21 src = fetchFromGitHub { 22 owner = "vala-lang"; 23 repo = pname; 24 rev = version; 25 sha256 = "sha256-Vl5DjKBdpk03aPD+0xGoTwD9Slg1rREorqZGX5o10cY="; 26 }; 27 28 passthru = { 29 updateScript = nix-update-script { }; 30 }; 31 32 nativeBuildInputs = [ 33 meson 34 ninja 35 pkg-config 36 scdoc 37 ] ++ lib.optionals stdenv.isLinux [ 38 # GNOME Builder Plugin 39 gnome-builder 40 ]; 41 42 buildInputs = [ 43 glib 44 libgee 45 json-glib 46 jsonrpc-glib 47 vala 48 ]; 49 50 meta = with lib; { 51 description = "Code Intelligence for Vala & Genie"; 52 homepage = "https://github.com/vala-lang/vala-language-server"; 53 license = licenses.lgpl21Plus; 54 maintainers = with maintainers; [ andreasfelix ]; 55 platforms = platforms.unix; 56 }; 57}