aboutsummaryrefslogtreecommitdiff
path: root/guix.scm
blob: 65036fb8b70e78dfd18533d66a7381c16fe7a136 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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