;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Nikita ;;; Copyright © 2016 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages forth) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages m4)) (define-public gforth (package (name "gforth") (version "0.7.3") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/gforth/gforth-" version ".tar.gz")) (sha256 (base32 "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig")))) (build-system gnu-build-system) (arguments '(#:parallel-build? #f ; XXX: parallel build fails #:phases (modify-phases %standard-phases (add-after 'install 'install-gforth.el (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (emacs-sitedir (string-append out "/share/emacs/site-lisp"))) ;; TODO: compile and autoload it. (install-file "gforth.el" emacs-sitedir) #t)))))) (native-inputs `(("m4" ,m4))) (synopsis "Forth interpreter") (description "Gforth is a fast and portable implementation of the ANSI Forth language. It includes an editing mode for Emacs and an interpreter featuring completion and history. A generic virtual machine environment, vmgen, is also included.") (home-page "https://www.gnu.org/software/gforth/") (license license:gpl3+))) v>
AgeCommit message (Collapse)Author
2019-05-07uuid: 'fat-uuid->string' preserves leading zeros.Ludovic Courtès
Fixes <https://bugs.gnu.org/35582>. Reported by sirgazil <sirgazil@zoho.com>. Previously, leading zeros would be removed, leading to an "invalid" UUID: (uuid->string (uuid "00CA-050E" 'fat32)) ⇒ "CA-50E" (string->uuid "CA-50E" 'fat32) ⇒ #f * gnu/system/uuid.scm (fat-uuid->string): Pad digits with zeros. * tests/uuid.scm ("uuid, FAT32, leading zeros preserved"): New test.
2018-05-19uuid: 'uuid' returns #f when 'string->uuid' returns #f.Ludovic Courtès
* gnu/system/uuid.scm (uuid): When STR is not a literal, return #f when 'string->uuid' returns #f. * tests/uuid.scm ("uuid, dynamic value"): New test.
2017-10-06uuid: Fix typo in 'uuid=?' test.Ludovic Courtès
* tests/uuid.scm ("uuid=?"): Change to 'test-assert'.
2017-10-05uuid: Add 'uuid=?' and use it.Ludovic Courtès
* gnu/system/uuid.scm (uuid=?): New procedure. * tests/uuid.scm ("uuid=?"): New test. * gnu/build/file-systems.scm (partition-uuid-predicate) (luks-partition-uuid-predicate): Use it instead of 'bytevector=?'.
2017-09-22uuid: Add a parser for FAT32 UUIDs.Ludovic Courtès
* gnu/system/uuid.scm (%fat32-uuid-rx): New variable. (string->fat32-uuid): New procedure. (%uuid-parsers): Add it. * tests/uuid.scm ("uuid, FAT32, format preserved"): New test.
2017-09-14uuid: Move tests to 'tests/uuid.scm'.Ludovic Courtès
* tests/file-systems.scm ("uuid->string", "string->uuid") ("uuid", "uuid, syntax error"): Move to... * tests/uuid.scm: ... here. New file. ("uuid, ISO-9660, format preserved"): New test.