From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 26 06:20:08 2020 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 To: guix-patches@gnu.org Subject: [PATCH] gnu: Add tic-80. 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-Debbugs-Envelope-To: submit Cc: Gabriel Arazas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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