10 stdenv.mkDerivation rec {
11 pname = "firebird-emu";
14 src = fetchFromGitHub {
15 owner = "nspire-emus";
18 fetchSubmodules = true;
19 hash = "sha256-ZptjlnOiF+hKuKYvBFJL95H5YQuR99d4biOco/MVEmE=";
22 # work around https://github.com/NixOS/nixpkgs/issues/19098
23 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isClang && stdenv.isDarwin) "-fno-lto";
25 nativeBuildInputs = [ wrapQtAppsHook qmake ];
27 buildInputs = [ qtbase qtdeclarative qtquickcontrols ];
29 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
30 mkdir $out/Applications
31 mv $out/bin/${pname}.app $out/Applications/
35 homepage = "https://github.com/nspire-emus/firebird";
36 description = "Third-party multi-platform emulator of the ARM-based TI-Nspireā¢ calculators";
37 license = lib.licenses.gpl3;
38 maintainers = with lib.maintainers; [ pneumaticat ];
39 platforms = lib.platforms.unix;