avp/guix.scm

49 lines
1.4 KiB
Scheme
Raw Normal View History

2022-06-13 15:54:08 +02:00
;; Guix package for avp. To build or install, run from the toplevel directory:
;;
;; guix build --file=guix.scm
;; guix package --install-from-file=guix.scm
;;
;; To create and enter a development environment:
;;
;; guix shell --pure --development --file=guix.scm
(use-modules
(gnu packages audio)
(gnu packages gl)
(gnu packages sdl)
(gnu packages video)
(guix build-system cmake)
(guix build utils)
(guix gexp)
(guix git-download)
(guix packages)
(ice-9 popen)
(ice-9 rdelim))
(define (git-version directory)
(with-directory-excursion directory
(read-line (open-pipe* OPEN_READ "git" "describe" "--always" "--tags"))))
2022-12-27 20:17:44 +01:00
(define license (@@ (guix licenses) license))
2022-06-13 15:54:08 +02:00
(define source-dir (dirname (current-filename)))
(define-public avp
(package
(name "avp")
(version (git-version source-dir))
(source (local-file source-dir #:recursive? #t #:select? (git-predicate source-dir)))
(build-system cmake-build-system)
(arguments
2022-12-27 20:17:44 +01:00
(list #:tests? #f))
2022-06-13 15:54:08 +02:00
(inputs
(list ffmpeg mesa openal sdl2))
(home-page "https://sr.ht/~jetomit/avp")
(synopsis "Aliens Versus Predator game engine")
(description "Unofficial Linux port of the game engine for the Rebellion
Developments game Aliens Versus Predator. This package does not
provide game assets.")
2022-12-27 20:17:44 +01:00
(license (license "avp" "file:///LICENSE" "Aliens Versus Predator license"))))
2022-06-13 15:54:08 +02:00
avp