From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eE2pMRcWb1+kHgAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 10:21:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SCiKLRcWb1/ARwAA1q6Kng (envelope-from ) for ; Sat, 26 Sep 2020 10:21:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 530379404CA for ; Sat, 26 Sep 2020 10:21:11 +0000 (UTC) Received: from localhost ([::1]:56874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM7KI-00033Y-Ay for larch@yhetil.org; Sat, 26 Sep 2020 06:21:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM7KA-00030x-0F for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM7K9-0007I5-Mz for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kM7K9-0005Qm-Ju for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43630] [PATCH] gnu: Add tic-80. Resent-From: Gabriel Arazas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Sep 2020 10:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43630 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43630@debbugs.gnu.org Cc: Gabriel Arazas X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160111560820795 (code B ref -1); Sat, 26 Sep 2020 10:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 10:20:08 +0000 Received: from localhost ([127.0.0.1]:45880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM7JE-0005PG-So for submit@debbugs.gnu.org; Sat, 26 Sep 2020 06:20:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:51150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM7JA-0005OK-8D for submit@debbugs.gnu.org; Sat, 26 Sep 2020 06:20:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM7JA-0002ki-2t for guix-patches@gnu.org; Sat, 26 Sep 2020 06:20:00 -0400 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]:56008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM7J8-00072j-8c for guix-patches@gnu.org; Sat, 26 Sep 2020 06:19:59 -0400 Received: by mail-pj1-x1041.google.com with SMTP id q4so790583pjh.5 for ; Sat, 26 Sep 2020 03:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kMv3GPWOXMeKMieI0XX4KcOnjMGWRfQqIbgkulT9JWo=; b=YBedtL7s6tOanKy7gixYUJc7ig/0g/EvF2nC4026TbsWhaC9UiWO0YJBHc0dmTknWx TomkxnNxMLS5ULO9zmVcybzVh3UVnmzhoSFy4XSLqqA51cCR2b4f2mepFsydf85n/zbV mYEsAoJWWMkLnmT+pbvCgCUaZErjWqyPSb9n/PDX1ZFJvM1mciQTazijZLcT6chcNaan 3RstEYj2BJYzvSVQaItwbkC8/kZjTmwwmrDdVxc8YP3UPP/xxLRc0g448Gjl3thM+Nr6 +Zetbjm4Fuxcw32mW4UvCUCbEcKWLaon09eTYFShTyLtg92hHgmZSWpnmN6IpxCLj6+L gNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kMv3GPWOXMeKMieI0XX4KcOnjMGWRfQqIbgkulT9JWo=; b=N8mLkuHSmhb9VtU7VWJUAqgYEQcdVSSaFHJYuEv4HBratW3Q2Xt3DvXx6wtDV3QRFL jIkEpWxF9NeuP8bAMsR6CeZrv4TCJGulleA1E4BA4vWgirL9E3LA7beBPI4FydGVb+WT aiFNmEwIXHkBlbfwCcrKyXuiEHaCxpcCJ+/IJO/9GMeb2INBGLuq+ufqT+Z/FeaR14/V wTeT5RlHJfw7bbR/G6ozFpsT/VkElp+t/ugfwHLlDrnxOy9ANb19ehlId+aPR+OEnD6+ 4jkqwMOw7CfQyzmNR9Z6jbJrV0X6Noz0JQg2HtlBs4rz6UqZdix2je39H3nbDyjKtGh9 wYTw== X-Gm-Message-State: AOAM532iTTy7FTaKgLuzQjYhSZbcNYFAwiUd88VE3G9lbb6hYgnJFds+ GhHjVQclR4uWF6UXtP675Xp+RVvsvDcHNg== X-Google-Smtp-Source: ABdhPJxKEOM/xKDtugMUDN1vhPJ3UiN1F5JWVQZg3MDQwTQ25pVKq9zvQGoiy7LFBLxkfYoinICS/w== X-Received: by 2002:a17:90a:d152:: with SMTP id t18mr1480867pjw.27.1601115594355; Sat, 26 Sep 2020 03:19:54 -0700 (PDT) Received: from localhost.localdomain ([112.198.163.52]) by smtp.gmail.com with ESMTPSA id 1sm5577359pfx.126.2020.09.26.03.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 03:19:53 -0700 (PDT) From: Gabriel Arazas Date: Sat, 26 Sep 2020 18:17:38 +0800 Message-Id: <20200926101738.18925-2-foo.dogsquared@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200926101738.18925-1-foo.dogsquared@gmail.com> References: <20200926101738.18925-1-foo.dogsquared@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=foo.dogsquared@gmail.com; helo=mail-pj1-x1041.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=YBedtL7s; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: rp/ILq34K6uR * gnu/packages/game-development.scm (tic-80): New variable. --- gnu/packages/game-development.scm | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 3252eb322e..3d0b2e7413 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Timotej Lazar ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2020 Gabriel Arazas ;;; ;;; This file is part of GNU Guix. ;;; @@ -2477,3 +2478,59 @@ fully dynamic omnidirectional shadows, global illumination, HDR lighting, deferred shading, morphological / temporal / multisample anti-aliasing, and much more.") (license license:zlib)))) + +(define-public tic-80 + ;; TODO: Package TIC-80 with an additional output as a WASM module. + (package + (name "tic-80") + (version "0.80.1344") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nesbox/TIC-80") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b1qm1m1wwss4bh3q8gx26kk4g8j4n9mzdd4lbyj7k37fx5v09rp")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (share/applications (string-append out "/share/applications")) + (share/icons (string-append out "/share/icons"))) + (substitute* "CMakeLists.txt" + ;; Replace the destinations to be inline with Guix. + (("/usr/share/applications") bin) + (("/usr/share/icons") share/icons) + (("\\$\\{TIC80_DESKTOP_DIR}") share/applications)) + + ;; The files inside of the folder should have write permissions + ;; but it will be overwritten by the build process anyways so it + ;; is faster to delete them instead. + (delete-file-recursively "build/assets") + (mkdir-p "build/assets")) + #t))))) + (inputs + `(("alsa-lib" ,alsa-lib) + ("curl" ,curl) + ("freeglut" ,freeglut) + ("glu" ,glu) + ("gtk+" ,gtk+) + ("mesa" ,mesa))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://tic80.com") + (synopsis "Fantasy computer with built-in tools for game development") + (description + "A fantasy computer featuring built-in tools such as a sprite editor, +music tracker, and a text editor. This package builds the free version of the +software which you can override the package and build the PRO version +yourself.") + (license license:expat))) -- 2.28.0