gnu: purescript: Use G-expressions.
* gnu/packages/purescript.scm (purescript)[arguments]: Rewrite as G-expressions.master
parent
1d8220216e
commit
bf767b2907
|
@ -26,6 +26,7 @@
|
||||||
#:use-module (gnu packages haskell-web)
|
#:use-module (gnu packages haskell-web)
|
||||||
#:use-module ((gnu packages python) #:select (python))
|
#:use-module ((gnu packages python) #:select (python))
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix build-system haskell)
|
#:use-module (guix build-system haskell)
|
||||||
|
@ -96,21 +97,23 @@
|
||||||
ghc-typed-process
|
ghc-typed-process
|
||||||
ghc-happy))
|
ghc-happy))
|
||||||
(arguments
|
(arguments
|
||||||
`(;; Tests require npm
|
(list
|
||||||
|
;; Tests require npm
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:configure-flags '("--flags=release")
|
#:configure-flags
|
||||||
|
#~(list "--flags=release")
|
||||||
#:haddock? #f
|
#: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
|
(add-after 'register 'remove-libraries
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(delete-file-recursively
|
(delete-file-recursively
|
||||||
(string-append (assoc-ref outputs "out") "/lib")))))))
|
(string-append #$output "/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