diff --git a/pkgs/applications/emulators/ripes/default.nix b/pkgs/applications/emulators/ripes/default.nix new file mode 100644 index 000000000000..8167c785013b --- /dev/null +++ b/pkgs/applications/emulators/ripes/default.nix @@ -0,0 +1,50 @@ +{ lib +, mkDerivation +, fetchFromGitHub +, pkg-config +, qtbase +, qtsvg +, qtcharts +, wrapQtAppsHook +, cmake +, python3 +}: + +mkDerivation rec { + pname = "ripes"; + version = "2.2.4"; + + src = fetchFromGitHub { + owner = "mortbopet"; + repo = "Ripes"; + rev = "v${version}"; + fetchSubmodules = true; + sha256 = "sha256-Aal2A4xypzaY7Oa+boIrXk7ITNKnh5OZIP7DkJjcGu4="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + python3 + wrapQtAppsHook + ]; + + buildInputs = [ + qtbase + qtsvg + qtcharts + ]; + + installPhase = '' + install -D Ripes $out/bin/Ripes + cp -r ${src}/appdir/usr/share $out/share + ''; + + meta = with lib; { + description = "A graphical processor simulator and assembly editor for the RISC-V ISA"; + homepage = "https://github.com/mortbopet/Ripes"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ rewine ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4810b3813c29..23f59318b43f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1349,6 +1349,8 @@ with pkgs; retrofe = callPackage ../applications/emulators/retrofe { }; + ripes = libsForQt5.callPackage ../applications/emulators/ripes { }; + rpcs3 = libsForQt5.callPackage ../applications/emulators/rpcs3 { }; ruffle = callPackage ../applications/emulators/ruffle { };