gnu: purescript: Drop Haskell libraries and documentation.
* gnu/packages/purescript.scm (purescript)[arguments]: Add 'remove-libraries phase and disable #:haddock?.
parent
7996bd3955
commit
169237aae5
|
@ -99,13 +99,17 @@
|
||||||
`(;; Tests require npm
|
`(;; Tests require npm
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:configure-flags '("--flags=release")
|
#:configure-flags '("--flags=release")
|
||||||
|
#:haddock? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'update-constraints
|
(add-before 'configure 'update-constraints
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "purescript.cabal"
|
(substitute* "purescript.cabal"
|
||||||
(("\\b(language-javascript|process)\\s+[^,]+" all dep)
|
(("\\b(language-javascript|process)\\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")))))))
|
||||||
(home-page "https://www.purescript.org/")
|
(home-page "https://www.purescript.org/")
|
||||||
(synopsis "Haskell inspired programming language compiling to JavaScript")
|
(synopsis "Haskell inspired programming language compiling to JavaScript")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue