cquery.scm 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
  2. ;;;
  3. ;;; This file is NOT part of GNU Guix.
  4. ;;;
  5. ;;; This file is free software; you can redistribute it and/or modify it
  6. ;;; under the terms of the GNU General Public License as published by
  7. ;;; the Free Software Foundation; either version 3 of the License, or (at
  8. ;;; your option) any later version.
  9. ;;;
  10. ;;; This file is distributed in the hope that it will be useful, but
  11. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ;;; GNU General Public License for more details.
  14. ;;;
  15. ;;; You should have received a copy of the GNU General Public License
  16. ;;; along with This file. If not, see <http://www.gnu.org/licenses/>.
  17. (define-module (staging cquery)
  18. #:use-module ((guix licenses) #:prefix license:)
  19. #:use-module (guix packages)
  20. #:use-module (guix git-download)
  21. #:use-module (gnu packages llvm)
  22. #:use-module (guix build-system cmake))
  23. (define-public cquery
  24. (let* ((commit "70c755b2e390d3edfb594a84a7531beb26b2bc07")
  25. (revision "2")
  26. (version (git-version "2018.07.18" revision commit)))
  27. (package
  28. (name "cquery")
  29. (version version)
  30. (home-page "https://github.com/cquery-project/cquery")
  31. (source (origin
  32. (method git-fetch)
  33. (uri (git-reference
  34. (url home-page)
  35. (commit commit)
  36. (recursive? #t)))
  37. (sha256
  38. (base32
  39. "15hndagk8szyxd34fp3z753i4vqb37p2b835a1k7pjff0hgdmg75"))
  40. (file-name (git-file-name name version))))
  41. (build-system cmake-build-system)
  42. (arguments
  43. `(#:configure-flags
  44. '("-DSYSTEM_CLANG=ON")
  45. #:tests? #f))
  46. (inputs
  47. `(("clang" ,clang)))
  48. (synopsis "C/C++ language server supporting multi-million line code base,
  49. powered by libclang.")
  50. (description "cquery is a highly-scalable, low-latency language server for
  51. C/C++/Objective-C. It is tested and designed for large code bases like
  52. Chromium. cquery provides accurate and fast semantic analysis without
  53. interrupting workflow.")
  54. (license license:expat))))
  55. cquery