From 0ec48989fd8cf47c20c2c7181f05469335753514 Mon Sep 17 00:00:00 2001 From: Jan Wielkiewicz Date: Sat, 17 Sep 2022 01:10:58 +0200 Subject: [PATCH 2/2] gnu: Add minetest-exile, minetest-naturalslopeslib. * gnu/packages/minetest.scm (minetest-exile, minetest-naturalslopeslib): New variables. --- gnu/packages/minetest.scm | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/minetest.scm b/gnu/packages/minetest.scm index 82c0b352bb..dc5dee11bd 100644 --- a/gnu/packages/minetest.scm +++ b/gnu/packages/minetest.scm @@ -747,3 +747,64 @@ (define-public minetest-basic-trains advtrains up to version 2.2.1.") (license (list license:cc-by-sa3.0 license:agpl3+)) (properties `((upstream-name . "orwell/basic_trains"))))) + +(define-public minetest-naturalslopeslib + (package + (name "minetest-naturalslopeslib") + (version "1.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url + "https://files.creativekara.fr/git/naturalslopeslib.git") + (commit version))) + (sha256 + (base32 + "19j223lld415496ppk0q0d4g45hxrvygl3axxlmbvqilflsqp6n0")) + (file-name (git-file-name name version)))) + (build-system minetest-mod-build-system) + (home-page + "https://content.minetest.net/packages/karamel/naturalslopeslib/") + (synopsis "Natural slopes library for Minetest") + (description + "This Minetest mod is a library that adds stair-like nodes from soft +ground nodes (sand, dirt, gravel...) that may change shape automatically +according to their surroundings.") + (license license:lgpl2.1))) + +(define-public minetest-exile + (package + (name "minetest-exile") + (version "v0.3.8d") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jeremyshannon/Exile/") + (commit version))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet #~(delete-file-recursively "mods/naturalslopeslib")) + (sha256 + (base32 + "1h7792kznhcqrvxn127318dx1v4xbwvffxw7vav22fd85c839c5g")))) + (build-system copy-build-system) + (arguments + (list #:install-plan #~'(("." "share/minetest/games/exile")) + #:phases #~(modify-phases %standard-phases + (add-after 'install 'install-dependencies + (lambda _ + (symlink (string-append + #$(this-package-input + "minetest-naturalslopeslib") + "/share/minetest/mods/naturalslopeslib") + (string-append + #$output + "/share/minetest/games/exile/" + "mods/naturalslopeslib"))))))) + (inputs (list minetest-naturalslopeslib)) + (synopsis "A survival game for Minetest") + (description + "Exile is a wilderness survival game with simple technology using +the Minetest game engine.") + (home-page "https://content.minetest.net/packages/Mantar/exile/") + (license license:gpl3))) -- 2.37.3