depot/third_party/nixpkgs/pkgs/misc/emulators/firebird-emu/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

36 lines
1,014 B
Nix

{ mkDerivation, lib, 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;
};
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 = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ pneumaticat ];
# Only tested on Linux, but likely possible to build on, e.g. macOS
platforms = lib.platforms.linux;
};
}