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