Add a package definition for Guix

This commit is contained in:
Timotej Lazar 2022-06-13 15:54:08 +02:00
parent ab595ad4a7
commit e75de60cc1

46
guix.scm Normal file
View file

@ -0,0 +1,46 @@
;; 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"))))
(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
'(#:tests? #f))
(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.")
(license "file:///LICENSE")))
avp