notest-guix-env.scm 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ;;; This file is part of GNUnet.
  2. ;;; Copyright (C) 2016, 2017, 2018 GNUnet e.V.
  3. ;;;
  4. ;;; GNUnet is free software: you can redistribute it and/or modify it
  5. ;;; under the terms of the GNU Affero General Public License as published
  6. ;;; by the Free Software Foundation, either version 3 of the License,
  7. ;;; or (at your option) any later version.
  8. ;;;
  9. ;;; GNUnet is distributed in the hope that it will be useful, but
  10. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. ;;; Affero General Public License for more details.
  13. ;;;
  14. ;;; You should have received a copy of the GNU Affero General Public License
  15. ;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. (use-modules
  17. (ice-9 popen)
  18. (ice-9 match)
  19. (ice-9 rdelim)
  20. (guix packages)
  21. (guix build-system gnu)
  22. (guix gexp)
  23. ((guix build utils) #:select (with-directory-excursion))
  24. (guix git-download)
  25. (guix utils) ; current-source-directory
  26. (gnu packages)
  27. (gnu packages aidc)
  28. (gnu packages autotools)
  29. (gnu packages backup)
  30. (gnu packages base)
  31. (gnu packages compression)
  32. (gnu packages curl)
  33. (gnu packages databases)
  34. (gnu packages file)
  35. (gnu packages gettext)
  36. (gnu packages glib)
  37. (gnu packages gnome)
  38. (gnu packages gnunet)
  39. (gnu packages gnupg)
  40. (gnu packages gnuzilla)
  41. (gnu packages groff)
  42. (gnu packages gstreamer)
  43. (gnu packages gtk)
  44. (gnu packages guile)
  45. (gnu packages image)
  46. (gnu packages image-viewers)
  47. (gnu packages libidn)
  48. (gnu packages libunistring)
  49. (gnu packages linux)
  50. (gnu packages maths)
  51. (gnu packages multiprecision)
  52. (gnu packages perl)
  53. (gnu packages pkg-config)
  54. (gnu packages pulseaudio)
  55. (gnu packages python)
  56. (gnu packages tex)
  57. (gnu packages texinfo)
  58. (gnu packages tex)
  59. (gnu packages tls)
  60. (gnu packages upnp)
  61. (gnu packages video)
  62. (gnu packages web)
  63. (gnu packages xiph)
  64. ((guix licenses) #:prefix license:))
  65. (define %source-dir (current-source-directory))
  66. (define gnunet-dev-env
  67. (let* ((revision "1")
  68. (select? (delay (or (git-predicate
  69. (current-source-directory))
  70. source-file?))))
  71. (package
  72. (inherit gnunet)
  73. (name "gnunet")
  74. (version (string-append "git" revision))
  75. (source
  76. (local-file
  77. (string-append (getcwd))
  78. #:recursive? #t))
  79. (inputs
  80. `(("glpk" ,glpk)
  81. ("gnurl" ,gnurl)
  82. ("gstreamer" ,gstreamer)
  83. ("gst-plugins-base" ,gst-plugins-base)
  84. ("gnutls/dane" ,gnutls/dane)
  85. ("libextractor" ,libextractor)
  86. ("libgcrypt" ,libgcrypt)
  87. ("libidn" ,libidn)
  88. ("libmicrohttpd" ,libmicrohttpd)
  89. ("libltdl" ,libltdl)
  90. ("libunistring" ,libunistring)
  91. ("openssl" ,openssl)
  92. ("opus" ,opus)
  93. ("pulseaudio" ,pulseaudio)
  94. ("sqlite" ,sqlite)
  95. ("postgresql" ,postgresql)
  96. ("mysql" ,mariadb)
  97. ("zlib" ,zlib)
  98. ("perl" ,perl)
  99. ("python-2" ,python-2) ; tests and gnunet-qr
  100. ("jansson" ,jansson)
  101. ("nss" ,nss)
  102. ("glib" ,glib "bin")
  103. ("gmp" ,gmp)
  104. ("bluez" ,bluez) ; for optional bluetooth feature
  105. ("glib" ,glib)
  106. ;; ("texlive" ,texlive) ;FIXME: minimize.
  107. ("texlive-tiny" ,texlive-tiny) ;; Seems to be enough for _just_ info output.
  108. ("miniupnpc" ,miniupnpc)
  109. ("libogg" ,libogg)))
  110. (native-inputs
  111. `(("pkg-config" ,pkg-config)
  112. ("autoconf" ,autoconf)
  113. ("automake" ,automake)
  114. ("gnu-gettext" ,gnu-gettext)
  115. ("which" ,which)
  116. ("texinfo" ,texinfo-5) ; Debian stable: 5.2
  117. ("libtool" ,libtool)))
  118. (outputs '("out" "debug"))
  119. (arguments
  120. `(#:configure-flags
  121. (list (string-append "--with-nssdir=" %output "/lib")
  122. "--enable-experimental")
  123. #:phases
  124. ;; swap check and install phases and set paths to installed bin
  125. (modify-phases %standard-phases
  126. (add-after 'unpack 'patch-bin-sh
  127. (lambda _
  128. (for-each (lambda (f) (chmod f #o755))
  129. (find-files "po" ""))
  130. #t))
  131. (add-after 'patch-bin-sh 'bootstrap
  132. (lambda _
  133. (invoke "sh" "bootstrap")))
  134. ;;(add-before 'build 'chdir
  135. ;; (lambda _
  136. ;; (chdir "doc/documentation")))
  137. (delete 'check)
  138. ;; XXX: https://gnunet.org/bugs/view.php?id=4619
  139. ))))))
  140. gnunet-dev-env