2021-02-05 17:12:51 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase, qtdeclarative }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "firebird-emu";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nspire-emus";
|
|
|
|
repo = "firebird";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-T62WB6msdB6/wIulqd/468JrCEiPGUrvtpjkZyo4wiA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
|
|
|
|
|
|
makeFlags = [ "INSTALL_ROOT=$(out)" ];
|
|
|
|
|
|
|
|
# Attempts to install to /usr/bin and /usr/share/applications, which Nix does
|
|
|
|
# not use.
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace firebird.pro \
|
|
|
|
--replace '/usr/' '/'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/nspire-emus/firebird";
|
|
|
|
description = "Third-party multi-platform emulator of the ARM-based TI-Nspire™ calculators";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# Only tested on Linux, but likely possible to build on, e.g. macOS
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|