[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/44: gnu: ghc-pandoc-types: Avoid embedding spurious references.
From: |
guix-commits |
Subject: |
41/44: gnu: ghc-pandoc-types: Avoid embedding spurious references. |
Date: |
Mon, 29 Jun 2020 07:15:30 -0400 (EDT) |
rekado pushed a commit to branch wip-haskell-updates
in repository guix.
commit 645309543425fc0d53854323d0b72364c2fa2c1c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Jun 27 22:30:51 2020 +0200
gnu: ghc-pandoc-types: Avoid embedding spurious references.
* gnu/packages/haskell-xyz.scm (ghc-pandoc-types)[arguments]: Add build
phase
"create-simple-paths-module" to prevent retaining unnecessary references.
---
gnu/packages/haskell-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index c48c3df..6dabb2b 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8895,6 +8895,26 @@ suitable for inclusion in pandoc YAML metadata.")
(base32
"1d6ygq991ddria71l7hg9yd7lq94sjy4m71rdws1v8hq943c4d0q"))))
(build-system haskell-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; None of the directory names are actually used. By generating a
+ ;; simpler module without references to store names we avoid
+ ;; introducing references in the pandoc executable.
+ (add-after 'unpack 'create-simple-paths-module
+ (lambda _
+ (call-with-output-file "Paths_pandoc_types.hs"
+ (lambda (port)
+ (format port "\
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE NoRebindableSyntax #-}
+{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
+module Paths_pandoc_types (version) where
+import Data.Version (Version(..))
+version :: Version
+version = Version [~a] []
+" (string-map (lambda (chr) (if (eq? chr #\.) #\, chr)) ,version))))
+ #t)))))
(inputs
`(("ghc-syb" ,ghc-syb)
("ghc-aeson" ,ghc-aeson)
- 32/44: gnu: ghc-mono-traversable: Add "doc" output., (continued)
- 32/44: gnu: ghc-mono-traversable: Add "doc" output., guix-commits, 2020/06/29
- 37/44: gnu: ghc-semigroupoids: Add "doc" output., guix-commits, 2020/06/29
- 39/44: gnu: ghc-zlib: Find zlib headers and library., guix-commits, 2020/06/29
- 40/44: gnu: ghc-distributive: Update to 0.6.2., guix-commits, 2020/06/29
- 24/44: gnu: ghc-foundation: Add "doc" output., guix-commits, 2020/06/29
- 33/44: gnu: ghc-profunctors: Add "doc" output., guix-commits, 2020/06/29
- 42/44: gnu: ghc-http: Prevent embedding of spurious references., guix-commits, 2020/06/29
- 36/44: gnu: ghc-rerebase: Add "doc" output., guix-commits, 2020/06/29
- 38/44: gnu: ghc-unliftio: Add "doc" output., guix-commits, 2020/06/29
- 35/44: gnu: ghc-regex-tdfa: Add "doc" output., guix-commits, 2020/06/29
- 41/44: gnu: ghc-pandoc-types: Avoid embedding spurious references.,
guix-commits <=
- 43/44: gnu: ghc-pandoc: Build statically linked executable., guix-commits, 2020/06/29
- 44/44: gnu: ghc-pandoc-citeproc: Build statically linked executable., guix-commits, 2020/06/29
- 34/44: gnu: ghc-rebase: Add "doc" output., guix-commits, 2020/06/29