guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/12: gnu: darcs: Drop Haskell libraries and documentation.


From: guix-commits
Subject: 07/12: gnu: darcs: Drop Haskell libraries and documentation.
Date: Sun, 29 Jan 2023 13:06:05 -0500 (EST)

lbraun pushed a commit to branch wip-haskell
in repository guix.

commit cc26a5c687cb91dea0113024cd9e7bdcf23fd0ff
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Jan 29 18:55:28 2023 +0100

    gnu: darcs: Drop Haskell libraries and documentation.
    
    * gnu/packages/haskell-apps.scm (darcs)[arguments]: Add
    'remove-libraries phase and disable #:haddock?.
---
 gnu/packages/haskell-apps.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm
index 3cae64a42e..7189d82ec1 100644
--- a/gnu/packages/haskell-apps.scm
+++ b/gnu/packages/haskell-apps.scm
@@ -187,6 +187,7 @@ unlit literate code files; and an option to turn off 
macro-expansion.")
        #:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
                            "-fnetwork-uri" "-fhttp" "--flag=executable"
                            "--flag=library")
+       #:haddock? #f
        #:phases
        (modify-phases %standard-phases
          (add-after 'patch-source-shebangs 'patch-sh
@@ -198,7 +199,10 @@ unlit literate code files; and an option to turn off 
macro-expansion.")
            (lambda _
              (substitute* "darcs.cabal"
                
(("(attoparsec|base|bytestring|constraints|cryptonite|hashable|memory|regex-tdfa|time)\\s+[^,]+"
 all dep)
-                dep)))))))
+                dep))))
+         (add-after 'register 'remove-libraries
+           (lambda* (#:key outputs #:allow-other-keys)
+             (delete-file-recursively (string-append (assoc-ref outputs "out") 
"/lib")))))))
     (inputs (list ghc-regex-base
                   ghc-regex-tdfa
                   ghc-regex-applicative



reply via email to

[Prev in Thread] Current Thread [Next in Thread]