[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/43: gnu: ghc-pandoc-types: Avoid embedding spurious references.
From: |
guix-commits |
Subject: |
40/43: gnu: ghc-pandoc-types: Avoid embedding spurious references. |
Date: |
Sat, 8 Aug 2020 22:41:17 -0400 (EDT) |
samplet pushed a commit to branch wip-haskell-updates-2
in repository guix.
commit 5ecdfaec5947783ab72c497cf82f4e78a3828e71
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 f880d98..881ad1a 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8902,6 +8902,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)
- 38/43: gnu: ghc-unliftio: Add "doc" output., (continued)
- 38/43: gnu: ghc-unliftio: Add "doc" output., guix-commits, 2020/08/08
- 37/43: gnu: ghc-semigroupoids: Add "doc" output., guix-commits, 2020/08/08
- 41/43: gnu: ghc-http: Prevent embedding of spurious references., guix-commits, 2020/08/08
- 28/43: gnu: ghc-haskell-src-exts: Add "doc" output., guix-commits, 2020/08/08
- 30/43: gnu: ghc-lens: Add "doc" output., guix-commits, 2020/08/08
- 31/43: gnu: ghc-lib-parser: Add "doc" output., guix-commits, 2020/08/08
- 33/43: gnu: ghc-profunctors: Add "doc" output., guix-commits, 2020/08/08
- 34/43: gnu: ghc-rebase: Add "doc" output., guix-commits, 2020/08/08
- 35/43: gnu: ghc-regex-tdfa: Add "doc" output., guix-commits, 2020/08/08
- 39/43: gnu: ghc-distributive: Update to 0.6.2., guix-commits, 2020/08/08
- 40/43: gnu: ghc-pandoc-types: Avoid embedding spurious references.,
guix-commits <=
- 42/43: gnu: ghc-pandoc: Build statically linked executable., guix-commits, 2020/08/08
- 43/43: gnu: ghc-pandoc-citeproc: Build statically linked executable., guix-commits, 2020/08/08