mescc-tools.scm 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ;;; mescc-tools.scm -- Guix package definition
  2. ;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
  3. ;;; Copyright 2016 Jeremiah Orians
  4. ;;; guix.scm: This file is part of mescc-tools.
  5. ;;;
  6. ;;; mescc-tools is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; mescc-tools is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with mescc-tools. If not, see <http://www.gnu.org/licenses/>.
  18. ;;; Commentary:
  19. ;; GNU Guix development package. To build and install, run:
  20. ;; guix package -f guix.scm
  21. ;;
  22. ;; To build it, but not install it, run:
  23. ;; guix build -f guix.scm
  24. ;;
  25. ;; To use as the basis for a development environment, run:
  26. ;; guix environment -l guix.scm
  27. ;;
  28. ;;; Code:
  29. (use-modules (ice-9 match)
  30. (gnu packages)
  31. (gnu packages gcc)
  32. (gnu packages base)
  33. (guix build-system gnu)
  34. (guix download)
  35. (guix licenses)
  36. (guix packages))
  37. (define-public mescc-tools
  38. (package
  39. (name "mescc-tools")
  40. (version "1.0.1")
  41. (inputs `(("which", which) ("coreutils", coreutils)))
  42. (source (origin
  43. (method url-fetch)
  44. (uri (string-append "http://git.savannah.nongnu.org/cgit/mescc-tools.git/snapshot/mescc-tools-Release_" version ".tar.gz"))
  45. (sha256
  46. (base32 "1wqj70h4rrxl1d1aqpxhy47964r5dilvll6gvqv75y9qk6pwx5is"))))
  47. (build-system gnu-build-system)
  48. (arguments
  49. `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
  50. #:test-target "test"
  51. #:phases
  52. (modify-phases %standard-phases
  53. (delete 'configure))))
  54. (synopsis "tools for the full source bootstrapping process")
  55. (description
  56. "Mescc-tools is a collection of tools for use in full source bootstrapping process.
  57. Currently consists of the M0 macro assembler and the hex2 linker.")
  58. (home-page "https://github.com/oriansj/mescc-tools")
  59. (license gpl3+)))
  60. ;; Return it here so `guix build/environment/package' can consume it directly.
  61. mescc-tools