summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Liu <kevin@potatofrom.space>2018-06-28 06:47:36 -0400
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-28 12:47:36 +0200
commitcb303b8074d10a1e4d4b18673a94e27379183384 (patch)
tree21d495224536d2d51829012d3700edf59fab4e98
parentc5da007af5a33cbed927d3aff5553c82b6de0a08 (diff)
downloadnixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar.gz
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar.bz2
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar.lz
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar.xz
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.tar.zst
nixpkgs-cb303b8074d10a1e4d4b18673a94e27379183384.zip
firebird-emu: init at 1.4 (#42663)
* firebird-emu: init at 1.4

* firebird-emu: limit platform to linux

Other platforms fail to compile currently.
-rw-r--r--pkgs/misc/emulators/firebird-emu/default.nix38
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/firebird-emu/default.nix b/pkgs/misc/emulators/firebird-emu/default.nix
new file mode 100644
index 00000000000..882bf13f4ea
--- /dev/null
+++ b/pkgs/misc/emulators/firebird-emu/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, qmake, qtbase, qtdeclarative }:
+
+stdenv.mkDerivation rec {
+  name = "firebird-emu-${version}";
+  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 = {
+    homepage = https://github.com/nspire-emus/firebird;
+    description = "Third-party multi-platform emulator of the ARM-based TI-Nspireā„¢ calculators";
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = with stdenv.lib.maintainers; [ pneumaticat ];
+    # Only tested on Linux, but likely possible to build on, e.g. macOS
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a1ccf40429a..e76a38cdb82 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2399,6 +2399,8 @@ with pkgs;
 
   fio = callPackage ../tools/system/fio { };
 
+  firebird-emu = libsForQt5.callPackage ../misc/emulators/firebird-emu { };
+
   flamerobin = callPackage ../applications/misc/flamerobin { };
 
   flashtool = callPackage_i686 ../development/mobile/flashtool {