Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / emulators / firebird-emu / default.nix
blob9fd99014616175e5048927e2ded25a10926036a5
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , qmake
5 , qtbase
6 , qtdeclarative
7 , qtquickcontrols
8 , wrapQtAppsHook
9 }:
10 stdenv.mkDerivation rec {
11   pname = "firebird-emu";
12   version = "1.6";
14   src = fetchFromGitHub {
15     owner = "nspire-emus";
16     repo = "firebird";
17     rev = "v${version}";
18     fetchSubmodules = true;
19     hash = "sha256-ZptjlnOiF+hKuKYvBFJL95H5YQuR99d4biOco/MVEmE=";
20   };
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/
32   '';
34   meta = {
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;
40   };