summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/firebird-emu
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-02-15 23:28:16 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-02-16 01:38:20 -0300
commit8d65e832f0a18f60e2040940c80d96373ac8b88c (patch)
tree3d6ade66b2a81403e3852b80b9e7c660699b6ed6 /pkgs/applications/emulators/firebird-emu
parent19574af0af3ffaf7c9e359744ed32556f34536bd (diff)
Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
Diffstat (limited to 'pkgs/applications/emulators/firebird-emu')
-rw-r--r--pkgs/applications/emulators/firebird-emu/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/firebird-emu/default.nix b/pkgs/applications/emulators/firebird-emu/default.nix
new file mode 100644
index 000000000000..8a759d005829
--- /dev/null
+++ b/pkgs/applications/emulators/firebird-emu/default.nix
@@ -0,0 +1,36 @@
+{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase, qtdeclarative }:
+
+mkDerivation rec {
+ pname = "firebird-emu";
+ version = "1.5";
+
+ src = fetchFromGitHub {
+ owner = "nspire-emus";
+ repo = "firebird";
+ rev = "v${version}";
+ sha256 = "sha256-T62WB6msdB6/wIulqd/468JrCEiPGUrvtpjkZyo4wiA=";
+ 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";
+ license = lib.licenses.gpl3;
+ maintainers = with lib.maintainers; [ pneumaticat ];
+ # Only tested on Linux, but likely possible to build on, e.g. macOS
+ platforms = lib.platforms.linux;
+ };
+}