3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase, qtdeclarative }:
2020-04-07 21:33:41 +01:00
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";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ pneumaticat ];
# Only tested on Linux, but likely possible to build on, e.g. macOS
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.linux;
};
}