diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix b/infra/libkookie/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix new file mode 100644 index 000000000000..888cfea0204e --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix @@ -0,0 +1,38 @@ +{ mkDerivation, stdenv, fetchFromGitHub, qmake, qtbase, qtdeclarative }: + +mkDerivation rec { + pname = "firebird-emu"; + 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; + }; +} |