diff --git a/pkgs/applications/emulators/ripes/default.nix b/pkgs/applications/emulators/ripes/default.nix index 3966be9e76a1..b3e58658b44f 100644 --- a/pkgs/applications/emulators/ripes/default.nix +++ b/pkgs/applications/emulators/ripes/default.nix @@ -8,6 +8,7 @@ , wrapQtAppsHook , cmake , python3 +, stdenv }: mkDerivation rec { @@ -36,15 +37,23 @@ mkDerivation rec { ]; installPhase = '' + runHook preInstall + '' + lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + cp -r Ripes.app $out/Applications/ + makeBinaryWrapper $out/Applications/Ripes.app/Contents/MacOS/Ripes $out/bin/Ripes + '' + lib.optionalString stdenv.isLinux '' install -D Ripes $out/bin/Ripes + '' + '' cp -r ${src}/appdir/usr/share $out/share + runHook postInstall ''; 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; + platforms = platforms.unix; maintainers = with maintainers; [ rewine ]; }; }