Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7 qtdeclarative, 8 qtquickcontrols, 9 wrapQtAppsHook, 10}: 11stdenv.mkDerivation rec { 12 pname = "firebird-emu"; 13 version = "1.6"; 14 15 src = fetchFromGitHub { 16 owner = "nspire-emus"; 17 repo = "firebird"; 18 rev = "v${version}"; 19 fetchSubmodules = true; 20 hash = "sha256-ZptjlnOiF+hKuKYvBFJL95H5YQuR99d4biOco/MVEmE="; 21 }; 22 23 nativeBuildInputs = [ 24 wrapQtAppsHook 25 qmake 26 ]; 27 28 buildInputs = [ 29 qtbase 30 qtdeclarative 31 qtquickcontrols 32 ]; 33 34 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 35 mkdir $out/Applications 36 mv $out/bin/${pname}.app $out/Applications/ 37 ''; 38 39 meta = { 40 homepage = "https://github.com/nspire-emus/firebird"; 41 changelog = "https://github.com/nspire-emus/firebird/releases/tag/v${version}"; 42 description = "Third-party multi-platform emulator of the ARM-based TI-Nspire calculators"; 43 license = lib.licenses.gpl3; 44 maintainers = with lib.maintainers; [ pneumaticat ]; 45 platforms = lib.platforms.unix; 46 }; 47}