mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-24 03:06:40 +01:00
gnu: hledger: Drop Haskell libraries and documentation.
* gnu/packages/finance.scm (ghc-hledger): New variable. (hledger): Inherit from ghc-hledger and add 'remove-libraries phase and disable #:haddock?.
This commit is contained in:
parent
baf9e0a336
commit
503998ac7a
1 changed files with 31 additions and 17 deletions
|
@ -214,9 +214,9 @@ (define-public bitcoin-core-23.0
|
||||||
|
|
||||||
(define-public bitcoin-core bitcoin-core-23.0)
|
(define-public bitcoin-core bitcoin-core-23.0)
|
||||||
|
|
||||||
(define-public hledger
|
(define-public ghc-hledger
|
||||||
(package
|
(package
|
||||||
(name "hledger")
|
(name "ghc-hledger")
|
||||||
(version "1.27.1")
|
(version "1.27.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -225,14 +225,6 @@ (define-public hledger
|
||||||
(base32
|
(base32
|
||||||
"0qdg87m7ys2ykqqq32p7h7aw827w4f5bcqx4dspxxq6zqlvzddqb"))))
|
"0qdg87m7ys2ykqqq32p7h7aw827w4f5bcqx4dspxxq6zqlvzddqb"))))
|
||||||
(build-system haskell-build-system)
|
(build-system haskell-build-system)
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'install 'install-doc
|
|
||||||
(lambda _
|
|
||||||
(install-file "hledger.info" (string-append #$output "/share/info"))
|
|
||||||
(install-file "hledger.1" (string-append #$output "/man/man1")))))))
|
|
||||||
(properties '((upstream-name . "hledger")))
|
(properties '((upstream-name . "hledger")))
|
||||||
(inputs (list ghc-decimal
|
(inputs (list ghc-decimal
|
||||||
ghc-diff
|
ghc-diff
|
||||||
|
@ -275,6 +267,23 @@ (define-public hledger
|
||||||
Accounting.")
|
Accounting.")
|
||||||
(license license:gpl3)))
|
(license license:gpl3)))
|
||||||
|
|
||||||
|
(define-public hledger
|
||||||
|
(package
|
||||||
|
(inherit ghc-hledger)
|
||||||
|
(name "hledger")
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:haddock? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-doc
|
||||||
|
(lambda _
|
||||||
|
(install-file "hledger.info" (string-append #$output "/share/info"))
|
||||||
|
(install-file "hledger.1" (string-append #$output "/man/man1"))))
|
||||||
|
(add-after 'register 'remove-libraries
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(delete-file-recursively (string-append (assoc-ref outputs "out") "/lib")))))))))
|
||||||
|
|
||||||
(define-public homebank
|
(define-public homebank
|
||||||
(package
|
(package
|
||||||
(name "homebank")
|
(name "homebank")
|
||||||
|
@ -1991,7 +2000,7 @@ (define-public hledger-web
|
||||||
ghc-data-default
|
ghc-data-default
|
||||||
ghc-extra
|
ghc-extra
|
||||||
ghc-hjsmin
|
ghc-hjsmin
|
||||||
hledger
|
ghc-hledger
|
||||||
ghc-hledger-lib
|
ghc-hledger-lib
|
||||||
ghc-hspec
|
ghc-hspec
|
||||||
ghc-http-client
|
ghc-http-client
|
||||||
|
@ -2015,12 +2024,17 @@ (define-public hledger-web
|
||||||
ghc-yesod-static
|
ghc-yesod-static
|
||||||
ghc-yesod-test))
|
ghc-yesod-test))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list
|
||||||
#~(modify-phases %standard-phases
|
#:haddock? #f
|
||||||
;; Tests write to $HOME.
|
#:phases
|
||||||
(add-before 'check 'set-home
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
;; Tests write to $HOME.
|
||||||
(setenv "HOME" "/tmp"))))))
|
(add-before 'check 'set-home
|
||||||
|
(lambda _
|
||||||
|
(setenv "HOME" "/tmp")))
|
||||||
|
(add-after 'register 'remove-libraries
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(delete-file-recursively (string-append (assoc-ref outputs "out") "/lib")))))))
|
||||||
(home-page "http://hledger.org")
|
(home-page "http://hledger.org")
|
||||||
(synopsis "Web-based user interface for the hledger accounting system")
|
(synopsis "Web-based user interface for the hledger accounting system")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue