diff options
Diffstat (limited to '.guix.scm')
-rw-r--r-- | .guix.scm | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/.guix.scm b/.guix.scm new file mode 100644 index 0000000..a2e0bde --- /dev/null +++ b/.guix.scm @@ -0,0 +1,76 @@ +;;; Copyright © 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net> +;;; +;;; This program 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. +;;; +;;; This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + +(use-modules (srfi srfi-1) + (srfi srfi-11) + (guix packages) + (guix utils) + (gnu packages base) + (gnu packages gnupg) + (gnu packages guile-xyz) + (gnu packages tex) + (gnu packages ssh) + (gnu packages texinfo) + (gnu packages version-control)) + +(define guile-lib/htmlprag-fixed + ;; Guile-Lib with a hotfix for (htmlprag). + (package + (inherit guile-lib) + (arguments + (substitute-keyword-arguments (package-arguments guile-lib) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-before 'build 'fix-htmlprag + (lambda _ + ;; When parsing + ;; "<body><blockquote><p>foo</p>\n</blockquote></body>", + ;; 'html->shtml' would mistakenly close 'blockquote' right + ;; before <p>. This patch removes 'p' from the + ;; 'parent-constraints' alist to fix that. + (substitute* "src/htmlprag.scm" + (("^[[:blank:]]*\\(p[[:blank:]]+\\. \\(body td th\\)\\).*") + "")) + #t)) + (add-before 'check 'skip-known-failure + (lambda _ + ;; XXX: The above change causes one test failure among + ;; the htmlprag tests. + (setenv "XFAIL_TESTS" "htmlprag.scm") + #t)))))))) + +(define-public guile-picture-language/devel + (package + (inherit guile-picture-language) + (source #f) + (arguments + '(#:make-flags + '("GUILE_AUTO_COMPILE=0"))) + (native-inputs + `(("texlive" ,texlive-tiny) ; for make distcheck + ("sed" ,sed) + + ("git" ,git-minimal) + + ;; For manual post processing + ("guile-lib" ,guile-lib/htmlprag-fixed) + + ;; For "git push" + ("ssh" ,openssh) + ("texinfo" ,texinfo) + + ,@(package-native-inputs guile-picture-language))))) + +guile-picture-language/devel |