summaryrefslogtreecommitdiff
path: root/crn/packages/games.scm
blob: c41106a56276f55295ae755d1be1ce6c0c73a0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(define-module (crn packages games)
  #:use-module (gnu packages)
  #:use-module (gnu packages sdl)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (srfi srfi-26))

(define-public black-box
  (package
    (name "black-box")
    (version "1.4.8")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://www.linux-games.com/" name "/" name "-" version ".tar.gz"))
       (sha256
        (base32 "1gbkkf05qy6zz0s2v1yyjrhrnw0nxl1ldzm4fdlwi1z4jqda7xlw"))))
    (build-system gnu-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'build 'set-SDL
           (lambda* (#:key inputs #:allow-other-keys)
             (setenv "CPATH"
                     (string-append
                      (assoc-ref inputs "sdl-union") "/include/SDL:"
                      (or (getenv "CPATH") ""))))))))
    (inputs (list (sdl-union (list sdl sdl-mixer sdl-image))))
    (synopsis "Guess where the crystals are!")
    (description "There's a black box.
You can shoot in and watch, where the shot leaves the box.  In the box,
crystals are reflecting the shots.  You have to guess where the crystals
are hidden, by watching your shots.")
    (home-page "https://www.linux-games.com/black-box/")
    (license license:gpl2+)))