2021-01-25 09:26:54 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase, qtdeclarative }:
|
2018-06-28 12:47:36 +02:00
|
|
|
|
2020-04-07 22:33:41 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "firebird-emu";
|
2018-06-28 12:47:36 +02:00
|
|
|
version = "1.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nspire-emus";
|
|
|
|
repo = "firebird";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0pdca6bgnmzfgf5kp83as99y348gn4plzbxnqxjs61vp489baahq";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = 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 = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nspire-emus/firebird";
|
2018-06-28 12:47:36 +02:00
|
|
|
description = "Third-party multi-platform emulator of the ARM-based TI-Nspire™ calculators";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat ];
|
2018-06-28 12:47:36 +02:00
|
|
|
# Only tested on Linux, but likely possible to build on, e.g. macOS
|
2021-01-15 14:21:58 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2018-06-28 12:47:36 +02:00
|
|
|
};
|
|
|
|
}
|