ripes: fix darwin build

+10 -1
+10 -1
pkgs/applications/emulators/ripes/default.nix
··· 8 8 , wrapQtAppsHook 9 9 , cmake 10 10 , python3 11 + , stdenv 11 12 }: 12 13 13 14 mkDerivation rec { ··· 36 37 ]; 37 38 38 39 installPhase = '' 40 + runHook preInstall 41 + '' + lib.optionalString stdenv.isDarwin '' 42 + mkdir -p $out/Applications 43 + cp -r Ripes.app $out/Applications/ 44 + makeBinaryWrapper $out/Applications/Ripes.app/Contents/MacOS/Ripes $out/bin/Ripes 45 + '' + lib.optionalString stdenv.isLinux '' 39 46 install -D Ripes $out/bin/Ripes 47 + '' + '' 40 48 cp -r ${src}/appdir/usr/share $out/share 49 + runHook postInstall 41 50 ''; 42 51 43 52 meta = with lib; { 44 53 description = "A graphical processor simulator and assembly editor for the RISC-V ISA"; 45 54 homepage = "https://github.com/mortbopet/Ripes"; 46 55 license = licenses.mit; 47 - platforms = platforms.linux; 56 + platforms = platforms.unix; 48 57 maintainers = with maintainers; [ rewine ]; 49 58 }; 50 59 }