From 19429f8f5006a35fbaa9cc2dfa5e6454136783c9 Mon Sep 17 00:00:00 2001 From: rewine <1758075541@qq.com> Date: Fri, 22 Apr 2022 22:12:33 +0800 Subject: [PATCH] ripes: init at 2.2.4 --- pkgs/applications/emulators/ripes/default.nix | 50 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/applications/emulators/ripes/default.nix diff --git a/pkgs/applications/emulators/ripes/default.nix b/pkgs/applications/emulators/ripes/default.nix new file mode 100644 index 00000000000..8167c785013 --- /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 4810b3813c2..23f59318b43 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 { };