mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: darcs: Drop Haskell libraries and documentation.
* gnu/packages/haskell-apps.scm (darcs)[arguments]: Add 'remove-libraries phase and disable #:haddock?.
This commit is contained in:
parent
503998ac7a
commit
47673272c4
1 changed files with 5 additions and 1 deletions
|
@ -187,6 +187,7 @@ unlit literate code files; and an option to turn off macro-expansion.")
|
||||||
#:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
|
#:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
|
||||||
"-fnetwork-uri" "-fhttp" "--flag=executable"
|
"-fnetwork-uri" "-fhttp" "--flag=executable"
|
||||||
"--flag=library")
|
"--flag=library")
|
||||||
|
#:haddock? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'patch-source-shebangs 'patch-sh
|
(add-after 'patch-source-shebangs 'patch-sh
|
||||||
|
@ -198,7 +199,10 @@ unlit literate code files; and an option to turn off macro-expansion.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "darcs.cabal"
|
(substitute* "darcs.cabal"
|
||||||
(("(attoparsec|base|bytestring|constraints|cryptonite|hashable|memory|regex-tdfa|time)\\s+[^,]+" all dep)
|
(("(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
|
(inputs (list ghc-regex-base
|
||||||
ghc-regex-tdfa
|
ghc-regex-tdfa
|
||||||
ghc-regex-applicative
|
ghc-regex-applicative
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue