From 2d0ae77dbc48ea88129d34457f33cc74fd64e303 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 6 Sep 2023 15:31:56 +0200 Subject: [PATCH] ripes: fix darwin build --- pkgs/applications/emulators/ripes/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ]; }; }