gnu: raincat: Update to 1.2.1.

* gnu/packages/games.scm (raincat): Update to 1.2.1.
[arguments]: Ensure raincat can find freeglut libraries at runtime.
[inputs]: Replace ghc-sdl, ghc-sdl-image, and ghc-sdl-mixer with ghc-sdl2,
ghc-sdl2-image, and ghc-sdl2-mixer, respectively.
This commit is contained in:
Ricardo Wurmus 2018-09-28 11:30:55 +02:00
parent 21be24b74f
commit 86eec9cf5c
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 18 additions and 9 deletions

View File

@ -2122,27 +2122,36 @@ on the screen and keyboard to display letters.")
(define-public raincat (define-public raincat
(package (package
(name "raincat") (name "raincat")
(version "1.2") (version "1.2.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append "http://hackage.haskell.org/package/Raincat/"
"http://hackage.haskell.org/package/Raincat/Raincat-" "Raincat-" version ".tar.gz"))
version
".tar.gz"))
(sha256 (sha256
(base32 (base32
"1zyxkvjxkadwakg03xnjii1hx0gs45ap9rfkpi4kxipzxppq1klk")))) "10y9zi22m6hf13c9h8zd9vg7mljpwbw0r3djb6r80bna701fdf6c"))))
(build-system haskell-build-system) (build-system haskell-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-executable
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/raincat")
`("LD_LIBRARY_PATH" ":" =
(,(string-append (assoc-ref inputs "freeglut")
"/lib"))))
#t))))))
(inputs (inputs
`(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
("ghc-random" ,ghc-random) ("ghc-random" ,ghc-random)
("ghc-glut" ,ghc-glut) ("ghc-glut" ,ghc-glut)
("freeglut" ,freeglut) ("freeglut" ,freeglut)
("ghc-opengl" ,ghc-opengl) ("ghc-opengl" ,ghc-opengl)
("ghc-sdl" ,ghc-sdl) ("ghc-sdl2" ,ghc-sdl2)
("ghc-sdl-image" ,ghc-sdl-image) ("ghc-sdl2-image" ,ghc-sdl2-image)
("ghc-sdl-mixer" ,ghc-sdl-mixer))) ("ghc-sdl2-mixer" ,ghc-sdl2-mixer)))
(home-page "http://www.bysusanlin.com/raincat/") (home-page "http://www.bysusanlin.com/raincat/")
(synopsis "Puzzle game with a cat in lead role") (synopsis "Puzzle game with a cat in lead role")
(description "Project Raincat is a game developed by Carnegie Mellon (description "Project Raincat is a game developed by Carnegie Mellon