{ lib, stdenv, cmake, llvmPackages, llvm, irony }: stdenv.mkDerivation { pname = "irony-server"; inherit (irony) src version; nativeBuildInputs = [ cmake llvm ]; buildInputs = [ llvmPackages.libclang ]; dontUseCmakeBuildDir = true; cmakeDir = "server"; meta = with lib; { description = "Server part of irony"; mainProgram = "irony-server"; homepage = "https://melpa.org/#/irony"; maintainers = [ maintainers.deepfire ]; platforms = platforms.unix; license = licenses.free; }; }