(define-module (gnu packages futhark) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system haskell) #:use-module (guix licenses) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages haskell) #:use-module (gnu packages haskell) #:use-module (gnu packages haskell-web) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-crypto)) (define-public ghc-integer-logarithms (package (name "ghc-integer-logarithms") (version "1.0.3") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/" "integer-logarithms/integer-logarithms-" version ".tar.gz")) (sha256 (base32 "05pc5hws66csvcvfswlwcr2fplwn1lbssvwifjxkbbwqhq0n5qjs")))) (build-system haskell-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'configure 'update-constraints (lambda _ (substitute* "integer-logarithms.cabal" (("tasty >= 0\\.10 && < 1\\.1") "tasty >= 0.10 && < 1.2"))))))) (native-inputs `(("ghc-quickcheck" ,ghc-quickcheck) ("ghc-smallcheck" ,ghc-smallcheck) ("ghc-tasty" ,ghc-tasty) ("ghc-tasty-hunit" ,ghc-tasty-hunit) ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck))) (home-page "https://github.com/Bodigrim/integer-logarithms") (synopsis "Integer logarithms") (description "This package provides the following modules: @code{Math.NumberTheory.Logarithms} and @code{Math.NumberTheory.Powers.Integer} from the @code{arithmoi} package, @code{GHC.Integer.Logarithms.Compat} and @code{Math.NumberTheory.Power.Natural}, as well as some additional functions in migrated modules.") (license license:expat))) (define-public ghc-integer-logarithms-bootstrap (package (inherit ghc-integer-logarithms) (name "ghc-integer-logarithms-bootstrap") (arguments `(#:tests? #f #:haskell ,ghc-8.8)) (native-inputs '()) (properties '((hidden? #t))))) ghc-integer-logarithms-bootstrap