diff --git a/pkgs/games/pro-office-calculator/default.nix b/pkgs/games/pro-office-calculator/default.nix new file mode 100644 index 000000000000..f7eebea75630 --- /dev/null +++ b/pkgs/games/pro-office-calculator/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, tinyxml-2, cmake, qtbase, qtmultimedia, fetchpatch }: +stdenv.mkDerivation rec { + version = "1.0.6"; + name = "pro-office-calculator-${version}"; + + src = fetchFromGitHub { + owner = "RobJinman"; + repo = "pro_office_calc"; + rev = "v${version}"; + sha256 = "1irgch6cbc2f8il1zh8qf98m43h41hma80dxzz9c7xvbvl99lybd"; + }; + + buildInputs = [ qtbase qtmultimedia tinyxml-2 ]; + + # This fixes a bug resulting in "illegal instruction" + patches = [(fetchpatch { + url = https://github.com/RobJinman/pro_office_calc/commit/806180d69d4af6b3183873f471c57bfdaf529560.patch; + sha256 = "1rcdjy233yf3kv4v18c82jyg08dykj2qspvg08n5b3bir870sbxz"; + })]; + + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + description = "Just an ordinary calculator. Nothing to see here..."; + homepage = http://proofficecalculator.com/; + maintainers = [ maintainers.pmiddend ]; + platforms = platforms.linux; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ebb6f6f7b48..a4ddfce10e65 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4446,6 +4446,8 @@ in pnmixer = callPackage ../tools/audio/pnmixer { }; + pro-office-calculator = libsForQt5.callPackage ../games/pro-office-calculator { }; + pulsemixer = callPackage ../tools/audio/pulsemixer { }; pwsafe = callPackage ../applications/misc/pwsafe { };