nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 cmake,
4 fetchFromGitHub,
5 mkLibretroCore,
6 pkg-config,
7}:
8mkLibretroCore {
9 core = "tic80";
10 version = "0-unstable-2024-05-13";
11
12 src = fetchFromGitHub {
13 owner = "libretro";
14 repo = "tic-80";
15 rev = "6412f72d0f4725c153ce3d245729b829e713542e";
16 hash = "sha256-RFp8sTSRwD+cgW3EYk3nBeY+zVKgZVQI5mjtfe2a64Q=";
17 fetchSubmodules = true;
18 };
19
20 extraNativeBuildInputs = [
21 cmake
22 pkg-config
23 ];
24 makefile = "Makefile";
25 cmakeFlags = [
26 "-DBUILD_LIBRETRO=ON"
27 "-DBUILD_DEMO_CARTS=OFF"
28 "-DBUILD_PRO=OFF"
29 "-DBUILD_PLAYER=OFF"
30 "-DBUILD_SDL=OFF"
31 "-DBUILD_SOKOL=OFF"
32 ];
33 preConfigure = "cd core";
34 postBuild = "cd lib";
35
36 meta = {
37 description = "Port of TIC-80 to libretro";
38 homepage = "https://github.com/libretro/tic-80";
39 license = lib.licenses.mit;
40 };
41}