diff options
author | Felix Albrigtsen <felix@albrigtsen.it> | 2023-09-06 15:31:56 +0200 |
---|---|---|
committer | Felix Albrigtsen <felix@albrigtsen.it> | 2023-09-06 23:32:25 +0200 |
commit | 2d0ae77dbc48ea88129d34457f33cc74fd64e303 (patch) | |
tree | 19beebdc57c7206fe046e0d7139039bfa3f283ea | |
parent | d24abecdaf65e077ef2999cd1181c7fe6baeca1e (diff) |
ripes: fix darwin build
-rw-r--r-- | pkgs/applications/emulators/ripes/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/ripes/default.nix b/pkgs/applications/emulators/ripes/default.nix index 3966be9e76a18..b3e58658b44fd 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 ]; }; } |