From dffa6e54ea424eb6037fa33f7565e6373ff37650 Mon Sep 17 00:00:00 2001 From: Polyester Date: Wed, 2 Oct 2024 22:38:38 +0200 Subject: guix.scm packaging --- guix.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 guix.scm (limited to 'guix.scm') diff --git a/guix.scm b/guix.scm new file mode 100644 index 0000000..65036fb --- /dev/null +++ b/guix.scm @@ -0,0 +1,35 @@ +(use-modules + (guix gexp) + (guix git-download) + (guix utils) + (guix packages) + ((guix licenses) #:prefix license:) + (guix build-system gnu)) + +(define vcs-file? + (or (git-predicate (current-source-directory)) + (const #t))) + +(define-public mcping + (package + (name "mcping") + (version "1.0") + (source (local-file "." "mcping-checkout" + #:recursive? #t + #:select? vcs-file?)) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;; Tests require network. + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output)) + #:phases #~(modify-phases %standard-phases + (delete 'configure)))) + (home-page "https://www.gnu.org/software/hello/") + (synopsis "C implementation of the Server List Ping from Minecraft.") + (description "Returns the result of a Server List Ping on a Minecraft server.") + (license license:agpl3+))) + +;; This allows you to run guix shell -f guix-packager.scm. +;; Remove this line if you just want to define a package. +mcping -- cgit v1.2.3