7 , desktopToDarwinBundle
13 stdenv.mkDerivation (finalAttrs: {
18 url = "https://courses.missouristate.edu/KenVollmar/MARS/MARS_${lib.replaceStrings ["."] ["_"] finalAttrs.version}_Aug2014/Mars${lib.replaceStrings ["."] ["_"] finalAttrs.version}.jar";
19 hash = "sha256-rDQLZ2uitiJGud935i+BrURHvP0ymrU5cWvNCZULcJY=";
29 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
39 comment = finalAttrs.meta.description;
40 categories = [ "Development" "IDE" ];
47 export JAR=$out/share/java/mars/Mars.jar
48 install -Dm444 $src $JAR
49 makeWrapper ${jre}/bin/java $out/bin/Mars \
50 --add-flags "-jar $JAR"
52 unzip $src images/MarsThumbnail.gif
53 for size in 16 24 32 48 64 128 256 512
55 mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
56 convert -resize "$size"x"$size" images/MarsThumbnail.gif $out/share/icons/hicolor/"$size"x"$size"/apps/mars.png
63 description = "An IDE for programming in MIPS assembly language intended for educational-level use";
65 homepage = "https://courses.missouristate.edu/KenVollmar/MARS/";
66 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
67 license = lib.licenses.mit;
68 maintainers = with lib.maintainers; [ emilytrau ];
69 platforms = lib.platforms.all;