From 53419d76209008668dde549162815355e7dc6c90 Mon Sep 17 00:00:00 2001 From: Chad Nelson Date: Sun, 21 Jan 2024 14:51:13 -0700 Subject: [PATCH] added first package --- skg/packages/mcrcon.scm | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 skg/packages/mcrcon.scm diff --git a/skg/packages/mcrcon.scm b/skg/packages/mcrcon.scm new file mode 100644 index 0000000..714c460 --- /dev/null +++ b/skg/packages/mcrcon.scm @@ -0,0 +1,45 @@ +(define-module (guix-packager) + #:use-module (guix) + #:use-module (guix build-system gnu) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages commencement) + #:use-module (gnu packages)) + + +(define-public mcrcon + (package + (name "mcrcon") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Tiiffi/mcrcon.git") + (commit "v0.7.2"))) + (file-name (git-file-name name version)) + (sha256 (base32 "0vj8la4ygk3xq2270mf28wswb71hl0a90y53iss2n4v0qqm5xrvi")))) + (build-system gnu-build-system) + (outputs '("out" "debug")) + (inputs (list gcc-toolchain)) + (arguments '( + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ (invoke "gcc" "mcrcon.c" "-o" "mcrcon"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (invoke "install" "-Dm" "755" "mcrcon" (string-append (assoc-ref outputs "out") "/bin/mcrcon")))) + (delete 'configure)))) + (home-page "https://github.com/Tiiffi/mcrcon") + (synopsis "Mcrcon is a powerful Minecraft RCON terminal client with Bukkit coloring support. + It is well suited for remote administration and to be used as part of automated server maintenance scripts. + It does not trigger \"IO: Broken pipe\" or \"IO: Connection reset\" spam bugs on the server side.") + (description "Minecraft console client with Bukkit coloring support") + (license license:zlib))) + +;; This allows you to run guix shell -f example.scm. +;; Remove this line if you just want to define a package. +mcrcon