guix.scm 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ;;; Xdpyprobe --- Check connection to X server DISPLAY
  2. ;; Copyright © 2016 Alex Kost <alezost@gmail.com>
  3. ;; This program is free software; you can redistribute it and/or modify
  4. ;; it under the terms of the GNU General Public License as published by
  5. ;; the Free Software Foundation, either version 3 of the License, or
  6. ;; (at your option) any later version.
  7. ;; This program is distributed in the hope that it will be useful,
  8. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ;; GNU General Public License for more details.
  11. ;; You should have received a copy of the GNU General Public License
  12. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ;;; Commentary:
  14. ;; This is a GNU Guix development package for xdpyprobe. To build, run:
  15. ;;
  16. ;; guix build -f guix.scm
  17. ;;; Code:
  18. (use-modules
  19. (guix packages)
  20. (guix git-download)
  21. (guix licenses)
  22. (guix build-system gnu)
  23. (gnu packages autotools)
  24. (gnu packages man)
  25. (gnu packages xorg))
  26. (define xdpyprobe-devel
  27. (let ((commit "968a9408d398f96c003470bc37bd23927143a612"))
  28. (package
  29. (name "xdpyprobe")
  30. (version (string-append "0.1-1." (string-take commit 7)))
  31. (source (origin
  32. (method git-fetch)
  33. (uri (git-reference
  34. (url "git://github.com/alezost/xdpyprobe.git")
  35. (commit commit)))
  36. (file-name (string-append name "-" version "-checkout"))
  37. (sha256
  38. (base32
  39. "168fc8wy5blccjhjlaa71wz20sarwk2j49sc7qb7pqzy3h4jn8vm"))))
  40. (build-system gnu-build-system)
  41. (arguments
  42. '(#:phases
  43. (modify-phases %standard-phases
  44. (add-after 'unpack 'patch-configure.ac
  45. (lambda _
  46. ;; Man page is generated only "if BUILD_FROM_GIT" (when
  47. ;; ".git" directory exists). Make this conditional true.
  48. (substitute* "configure.ac"
  49. (("^(AM_CONDITIONAL\\(\\[BUILD_FROM_GIT\\],).*" all beg)
  50. (string-append beg " [true])\n")))))
  51. (add-after 'patch-configure.ac 'autogen
  52. (lambda _ (zero? (system* "sh" "autogen.sh")))))))
  53. (native-inputs
  54. `(("autoconf" ,autoconf)
  55. ("automake" ,automake)
  56. ("help2man" ,help2man)))
  57. (inputs
  58. `(("libx11" ,libx11)))
  59. (home-page "https://github.com/alezost/xdpyprobe")
  60. (synopsis "Probe X server for connectivity")
  61. (description
  62. "Xdpyprobe is a tiny C program whose only purpose is to probe a
  63. connectivity of the X server running on a particular @code{DISPLAY}.")
  64. (license gpl3+))))
  65. xdpyprobe-devel