diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2023-01-29 18:55:28 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2023-02-26 10:26:16 +0100 |
commit | 47673272c46cd73c03b067e81ddf0d952a874040 (patch) | |
tree | 33d8382be00208c7baa543b326ecd5583909d3f1 | |
parent | 503998ac7ae16bf5587c69db18e70abdd2f14565 (diff) | |
download | guix-47673272c46cd73c03b067e81ddf0d952a874040.tar.gz |
gnu: darcs: Drop Haskell libraries and documentation.
* gnu/packages/haskell-apps.scm (darcs)[arguments]: Add 'remove-libraries phase and disable #:haddock?.
-rw-r--r-- | gnu/packages/haskell-apps.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index 5a6bae5281..ad71713f92 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 |