2020-02-09 22:17:07 +00:00
|
|
|
{ fetchFromGitHub
|
2021-01-25 08:26:54 +00:00
|
|
|
, lib
|
2020-02-09 22:17:07 +00:00
|
|
|
, SDL2
|
|
|
|
, libGL
|
|
|
|
, libarchive
|
2020-04-28 03:29:39 +00:00
|
|
|
, libusb-compat-0_1
|
2020-02-09 22:17:07 +00:00
|
|
|
, qtbase
|
|
|
|
, qmake
|
|
|
|
, git
|
2022-03-21 20:57:33 +00:00
|
|
|
, libpng
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-11-06 15:04:13 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, stdenv
|
2020-02-09 22:17:07 +00:00
|
|
|
}:
|
|
|
|
|
2021-11-06 15:04:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-02-09 22:17:07 +00:00
|
|
|
pname = "CEmu";
|
|
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CE-Programming";
|
|
|
|
repo = "CEmu";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1wcdnzcqscawj6jfdj5wwmw9g9vsd6a1rx0rrramakxzf8b7g47r";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
git
|
2021-11-06 15:04:13 +00:00
|
|
|
wrapQtAppsHook
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-02-09 22:17:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
libGL
|
|
|
|
libarchive
|
2020-04-28 03:29:39 +00:00
|
|
|
libusb-compat-0_1
|
2020-02-09 22:17:07 +00:00
|
|
|
qtbase
|
2022-03-21 20:57:33 +00:00
|
|
|
libpng
|
2020-02-09 22:17:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"gui/qt"
|
2021-11-06 15:04:13 +00:00
|
|
|
"CONFIG+=ltcg"
|
2020-02-09 22:17:07 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-09 22:17:07 +00:00
|
|
|
changelog = "https://github.com/CE-Programming/CEmu/releases/tag/v${version}";
|
|
|
|
description = "Third-party TI-84 Plus CE / TI-83 Premium CE emulator, focused on developer features";
|
|
|
|
homepage = "https://ce-programming.github.io/CEmu";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ luc65r ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
2021-11-06 15:51:10 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-02-09 22:17:07 +00:00
|
|
|
};
|
|
|
|
}
|