From 4c079d3e405e87a9b0790099e057f4ce2fe3ba29 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 15 Dec 2023 05:45:01 -0700 Subject: [PATCH] pkgs/tic-80: init.. but not workingly --- flake.nix | 1 + pkgs/tic-80.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/tic-80.nix diff --git a/flake.nix b/flake.nix index 0769fea..6a8fc80 100644 --- a/flake.nix +++ b/flake.nix @@ -285,6 +285,7 @@ inherit upkgs; }; iamb = upkgs.callPackage ./pkgs/iamb.nix { }; + tic-80 = upkgs.callPackage ./pkgs/tic-80.nix { }; icbirc = spkgs.callPackage ./pkgs/icbirc.nix { inherit spkgs; isUnstable = true; diff --git a/pkgs/tic-80.nix b/pkgs/tic-80.nix new file mode 100644 index 0000000..d81f8e8 --- /dev/null +++ b/pkgs/tic-80.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, cmake +, pkg-config +, curl +, lua +, mruby +, SDL +, SDL_mixer +, python3 +, xorg +, ... +}: +stdenv.mkDerivation { + pname = "tic-80"; + version = "1.1.2837"; + + src = builtins.fetchGit { + url = "https://github.com/nesbox/TIC-80"; + rev = "be42d6f146cfa520b9b1050feba10cc8c14fb3bd"; + allRefs = true; + submodules = true; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + curl.dev + lua + mruby + SDL + SDL_mixer + python3 + xorg.libXext + ]; + + meta = with lib; { + description = "Fantasy computer for making, playing and sharing games."; + homepage = "https://tic80.com"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ qbit ]; + }; +}