123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- (define-module (ton-haskell)
- #:use-module (guix packages)
- #:use-module (guix download)
- #:use-module (guix git-download)
- #:use-module (guix utils)
- #:use-module (guix build-system haskell)
- #:use-module ((guix licenses) #:prefix license:)
- #:use-module (gnu packages sdl)
- #:use-module (gnu packages haskell)
- #:use-module (gnu packages haskell-check)
- #:use-module (gnu packages haskell-web))
- (define-public ghc-bytes-t
- (package
- (name "ghc-bytes-t")
- (version "0.15.4")
- (source
- (origin
- (method url-fetch)
- (uri
- (string-append "https://hackage.haskell.org/package/bytes-"
- version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "121x3iqlm8pghw8cd9g30cnqbl7jrdpfjxdanmqdqllajw6xivrm"))))
- (build-system haskell-build-system)
- (inputs `(("ghc-cereal" ,ghc-cereal)
- ("cabal-doctest" ,cabal-doctest)
- ("ghc-doctest" ,ghc-doctest-0.13)
- ("ghc-mtl" ,ghc-mtl)
- ("ghc-scientific" ,ghc-scientific)
- ("ghc-text" ,ghc-text)
- ("ghc-transformers-compat" ,ghc-transformers-compat)
- ("ghc-unordered-containers" ,ghc-unordered-containers)
- ("ghc-void" ,ghc-void)
- ("ghc-vector" ,ghc-vector)))
- (synopsis "Haskell bytes: serialization between binary and cereal")
- (description "Haskell module to share code for serialization between
- binary and cereal")
- (home-page "https://hackage.haskell.org/package/bytes")
- (license license:bsd-3)))
- (define-public ghc-semigroupoids-5.2.2-t
- (package
- (inherit ghc-semigroupoids)
- (name "ghc-semigroupoids-t")
- (version "5.2.2")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://hackage.haskell.org/package/semigroupoids-5.2.2/semigroupoids-"
- version ".tar.gz"))
- (sha256
- (base32
- "17i96y4iqj8clcs090lf6k0ij3j16nj14vsfwz0mm9nd6i4gbpp4"))))
- (inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
- ,@(package-inputs ghc-semigroupoids)))))
- (define-public ghc-linear-t
- (package
- (name "ghc-linear-t")
- (version "1.20.7")
- ; (version "1.19.1.3")
- ; (version "1.15.5")
- (source
- (origin
- (method url-fetch)
- (uri
- (string-append "https://hackage.haskell.org/package/linear-" version "/linear-"
- version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- ; "17fxz49zj6vklgfs583zpn7naqgp5mv2zsvmxrv80ym8r52mp5mi")))) ; 1.15.5
- ; "1hprmhs1nm6l81kpnnznz92l66j10z4asn3g3l9c47165q881592")))) ; 1.19.1.3
- "1dna0zf4qwqwvslz0nkkfclvbflfvf10qydnjsi20wijilkbd22b")))) ;;1.20.7
- (build-system haskell-build-system)
- (inputs `(;("ghc-base-orphans" ,ghc-base-orphans)
- ("ghc-bytes" ,ghc-bytes)
- ("ghc-cereal" ,ghc-cereal)
- ("ghc-distributive" ,ghc-distributive)
- ("ghc-doctest" ,ghc-doctest-0.12)
- ;("cabal-doctest" ,cabal-doctest)
- ("ghc-hashable" ,ghc-hashable)
- ("ghc-hunit" ,ghc-hunit)
- ("ghc-lens" ,ghc-lens)
- ("ghc-reflection" ,ghc-reflection)
- ("ghc-semigroupoids" ,ghc-semigroupoids-5.2.2)
- ("ghc-simple-reflect" ,ghc-simple-reflect)
- ("ghc-tagged" ,ghc-tagged)
- ("ghc-test-framework" ,ghc-test-framework)
- ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
- ;("ghc-vector" ,ghc-vector)
- ;("ghc-void" ,ghc-void)
- ))
- (synopsis "Haskell linear: Linear Algebra")
- (description "Haskell types and combinators for linear algebra on free vector
- spaces")
- (home-page "https://hackage.haskell.org/package/linear")
- (license license:bsd-3)))
- (define-public ghc-sdl2-t
- (package
- (name "ghc-sdl2-t")
- (version "2.4.0.1")
- (source
- (origin
- (method url-fetch)
- (uri
- (string-append "https://hackage.haskell.org/package/sdl2-2.4.0.1/sdl2-"
- version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "0kb4nl653b0p7bcv9h4b2bhpgdb49v2d49ri3cs4yykdrl58v2cs"))))
- (build-system haskell-build-system)
- (inputs `(("sdl2" ,sdl2)
- ("ghc-statevar" ,ghc-statevar)
- ("ghc-exceptions" ,ghc-exceptions)
- ("ghc-text" ,ghc-text)
- ("ghc-opengl" ,ghc-opengl)
- ;; ("ghc-linear" ,ghc-linear)
- ("ghc-vector" ,ghc-vector)))
- (synopsis "Haskell sdl2: high- and low-level bindings to the SDL2 library")
- (description "Haskell bindings to the SDL 2 library, in both high-
- and low-level forms: The SDL namespace contains high-level bindings,
- where enumerations are split into sum types, and we perform automatic
- error-checking.
- The SDL.Raw namespace contains an almost 1-1 translation of the C API
- into Haskell FFI calls. As such, this does not contain sum types nor
- error checking.")
- (home-page "https://hackage.haskell.org/package/sdl2")
- (license license:bsd-3)))
|