summaryrefslogtreecommitdiff
path: root/rodion/packages/games.scm
diff options
context:
space:
mode:
Diffstat (limited to 'rodion/packages/games.scm')
-rw-r--r--rodion/packages/games.scm35
1 files changed, 34 insertions, 1 deletions
diff --git a/rodion/packages/games.scm b/rodion/packages/games.scm
index 749806f..e81fe26 100644
--- a/rodion/packages/games.scm
+++ b/rodion/packages/games.scm
@@ -5,6 +5,7 @@
#:use-module (guix git-download)
#:use-module (guix gexp)
#:use-module (gnu packages sdl)
+ #:use-module (gnu packages compression)
#:use-module ((guix licenses) #:prefix license:))
(define-public fpattern
@@ -62,9 +63,41 @@ Filename patterns are composed of regular (printable) characters which may compr
(uri (git-reference
(url "https://github.com/alexbatalov/fallout1-ce")
(commit (string-append "v" version))))
- (patches `(,(local-file "./fpattern.patch")))
+ (patches `(,(local-file "./patches/0001-fallout-ce-fpattern.patch")))
(sha256
(base32 "0c11zbvja42s0z8zqfm6gf981m0v2vwxvhqas46lplwbfhbnh836"))))
(license license:expat)
(description "Fallout")
(synopsis "Fallout")))
+
+(define-public fallout2-ce
+ (package
+ (name "fallout2-ce")
+ (version "1.3.0")
+ (build-system cmake-build-system)
+ (home-page "https://github.com/alexbatalov/fallout2-ce")
+ (inputs (list sdl2
+ fpattern
+ zlib))
+ (arguments
+ (list
+ #:tests? #f
+ #:phases #~(modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (mkdir-p bin)
+ (copy-file "fallout2-ce" (string-append bin "/fallout2-ce"))))))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alexbatalov/fallout2-ce")
+ (commit (string-append "v" version))))
+ (patches `(,(local-file "./patches/0001-fallout2-ce-fpattern.patch")))
+ (sha256
+ (base32 "15b30i2ixq0w01qxrymd1qs1awj8kijbqzac8wvfrpm85fdnfnmg"))))
+ (license license:expat)
+ (description "Fallout")
+ (synopsis "Fallout")))