guix.scm 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ;;; Xdaemon --- Bash scripts to run X server as a daemon and to kill it
  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 Xdaemon. 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 bash)
  25. (gnu packages xorg))
  26. (define xdaemon-devel
  27. (let ((commit "5cfc7925b051c6e0c5255f30934d8bb540c4edc3"))
  28. (package
  29. (name "xdaemon")
  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/xdaemon.git")
  35. (commit commit)))
  36. (file-name (string-append name "-" version "-checkout"))
  37. (sha256
  38. (base32
  39. "14qxips7rw3y0b6rlw4ixlk1djkz26ngd87fjb8xfl04gqnd7mdi"))))
  40. (build-system gnu-build-system)
  41. (arguments
  42. '(#:phases
  43. (modify-phases %standard-phases
  44. (add-after 'unpack 'autogen
  45. (lambda _ (zero? (system* "sh" "autogen.sh")))))))
  46. (native-inputs
  47. `(("autoconf" ,autoconf)
  48. ("automake" ,automake)))
  49. (inputs
  50. `(("bash" ,bash)
  51. ("xorg-server" ,xorg-server)))
  52. (home-page "https://github.com/alezost/xdaemon")
  53. (synopsis "Run X server as a daemon")
  54. (description
  55. "Xdaemon is a wrapper bash script that allows to turn X server
  56. into a daemon. When Xdaemon is started, it runs Xorg server, then waits
  57. until it will be ready to accept connections from clients, and quits.
  58. Another script that comes with this package is Xkill. It allows a user
  59. to kill an X server running on a particular @code{DISPLAY}.")
  60. ;; 'Xdaemon' script is under FreeBSD, the rest is under GPL3 or later.
  61. (license (list bsd-2 gpl3+)))))
  62. xdaemon-devel