[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/44: gnu: ghc-http: Prevent embedding of spurious references.
From: |
guix-commits |
Subject: |
42/44: gnu: ghc-http: Prevent embedding of spurious references. |
Date: |
Fri, 17 Jul 2020 08:33:42 -0400 (EDT) |
rekado pushed a commit to branch wip-haskell-updates
in repository guix.
commit 5b0eb245287caf20871b8bb40bd4ba3d4fcf32b4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Jun 27 22:36:14 2020 +0200
gnu: ghc-http: Prevent embedding of spurious references.
* gnu/packages/haskell-web.scm (ghc-http)[arguments]: Add build phase
"create-simple-paths-module" to avoid retaining unnecessary references.
---
gnu/packages/haskell-web.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 5931fca..b9474c9 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -197,7 +197,23 @@ both client and server code).")
("ghc-network-uri" ,ghc-network-uri)
("ghc-split" ,ghc-split)))
(arguments
- `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
+ `(#:tests? #f ; FIXME: currently missing libraries used for tests.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'create-simple-paths-module
+ (lambda _
+ (call-with-output-file "Paths_HTTP.hs"
+ (lambda (port)
+ (format port "\
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE NoRebindableSyntax #-}
+{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
+module Paths_HTTP (version) where
+import Data.Version (Version(..))
+version :: Version
+version = Version [~a] []
+" (string-map (lambda (chr) (if (eq? chr #\.) #\, chr)) ,version))))
+ #t)))))
(home-page "https://github.com/haskell/HTTP")
(synopsis "Library for client-side HTTP")
(description
- 19/44: gnu: ghc-basement: Add "doc" output., (continued)
- 19/44: gnu: ghc-basement: Add "doc" output., guix-commits, 2020/07/17
- 23/44: gnu: ghc-foldl: Add "doc" output., guix-commits, 2020/07/17
- 24/44: gnu: ghc-foundation: Add "doc" output., guix-commits, 2020/07/17
- 25/44: gnu: ghc-free: Add "doc" output., guix-commits, 2020/07/17
- 26/44: gnu: ghc-generic-deriving: Add "doc" output., guix-commits, 2020/07/17
- 33/44: gnu: ghc-profunctors: Add "doc" output., guix-commits, 2020/07/17
- 34/44: gnu: ghc-rebase: Add "doc" output., guix-commits, 2020/07/17
- 32/44: gnu: ghc-mono-traversable: Add "doc" output., guix-commits, 2020/07/17
- 27/44: gnu: ghc-generics-sop: Add "doc" output., guix-commits, 2020/07/17
- 39/44: gnu: ghc-zlib: Find zlib headers and library., guix-commits, 2020/07/17
- 42/44: gnu: ghc-http: Prevent embedding of spurious references.,
guix-commits <=
- 43/44: gnu: ghc-pandoc: Build statically linked executable., guix-commits, 2020/07/17
- 28/44: gnu: ghc-haskell-src-exts: Add "doc" output., guix-commits, 2020/07/17
- 37/44: gnu: ghc-semigroupoids: Add "doc" output., guix-commits, 2020/07/17
- 40/44: gnu: ghc-distributive: Update to 0.6.2., guix-commits, 2020/07/17
- 29/44: gnu: ghc-juicypixels: Add "doc" output., guix-commits, 2020/07/17
- 35/44: gnu: ghc-regex-tdfa: Add "doc" output., guix-commits, 2020/07/17
- 41/44: gnu: ghc-pandoc-types: Avoid embedding spurious references., guix-commits, 2020/07/17
- 30/44: gnu: ghc-lens: Add "doc" output., guix-commits, 2020/07/17
- 31/44: gnu: ghc-lib-parser: Add "doc" output., guix-commits, 2020/07/17
- 36/44: gnu: ghc-rerebase: Add "doc" output., guix-commits, 2020/07/17