ripes: fix darwin build

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