7 , stripJavaArchivesHook
11 jdk = jdk17; # Only java 17 is supported as of 23.09
13 stdenvNoCC.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "release-${finalAttrs.version}";
21 hash = "sha256-Dg/v72N9cDG9Ko5JIcZxGxh+ClRDgf5Jq5DvQyCiYOs=";
22 fetchSubmodules = true;
49 sed -i "s|Icon=.*|Icon=openrocket|g" snap/gui/openrocket.desktop
50 install -Dm644 snap/gui/openrocket.desktop -t $out/share/applications
51 install -Dm644 snap/gui/openrocket.png -t $out/share/icons/hicolor/256x256/apps
52 install -Dm644 swing/build/jar/OpenRocket.jar -t $out/share/openrocket
54 makeWrapper ${jdk}/bin/java $out/bin/openrocket \
55 --add-flags "-jar $out/share/openrocket/OpenRocket.jar"
61 changelog = "https://github.com/openrocket/openrocket/releases/tag/${finalAttrs.src.rev}";
62 description = "Model-rocketry aerodynamics and trajectory simulation software";
63 homepage = "https://openrocket.info";
64 license = lib.licenses.gpl3Plus;
65 mainProgram = "openrocket";
66 maintainers = with lib.maintainers; [ tomasajt ];
67 platforms = jdk.meta.platforms;
68 sourceProvenance = with lib.sourceTypes; [
70 binaryBytecode # source bundles dependencies as jars