14 stdenv.mkDerivation (finalAttrs: {
19 url = "https://courses.missouristate.edu/KenVollmar/MARS/MARS_${
20 lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version
21 }_Aug2014/Mars${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}.jar";
22 hash = "sha256-rDQLZ2uitiJGud935i+BrURHvP0ymrU5cWvNCZULcJY=";
34 ++ lib.optionals stdenv.hostPlatform.isDarwin [
44 comment = finalAttrs.meta.description;
55 export JAR=$out/share/java/mars/Mars.jar
56 install -Dm444 $src $JAR
57 makeWrapper ${jre}/bin/java $out/bin/Mars \
58 --add-flags "-jar $JAR"
60 unzip $src images/MarsThumbnail.gif
61 for size in 16 24 32 48 64 128 256 512
63 mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
64 convert -resize "$size"x"$size" images/MarsThumbnail.gif $out/share/icons/hicolor/"$size"x"$size"/apps/mars.png
71 description = "An IDE for programming in MIPS assembly language intended for educational-level use";
73 homepage = "https://courses.missouristate.edu/KenVollmar/MARS/";
74 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
75 license = lib.licenses.mit;
76 maintainers = with lib.maintainers; [ emilytrau ];
77 platforms = lib.platforms.all;