diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-13 15:54:08 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-13 15:54:08 +0200 |
| commit | e75de60cc153acfe09b0e25cf007c2ebd14ca571 (patch) | |
| tree | 5c530f09e5e455b08dcecb8ec7f89299f2fc8ef3 | |
| parent | ab595ad4a7f5a2cfb5efb24d3156cdd35b5aebb5 (diff) | |
Add a package definition for Guix
| -rw-r--r-- | guix.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/guix.scm b/guix.scm new file mode 100644 index 0000000..adaa7da --- /dev/null +++ b/guix.scm @@ -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 |
