22 libPath = lib.makeLibraryPath [
35 maven.buildMavenPackage rec {
38 src = fetchFromGitHub {
41 rev = "refs/tags/v${version}";
42 hash = "sha256-ofEwHUCm79roHe2bawmKFw2QHhIonnlkFG5nhE6uN+g=";
49 # https://github.com/marvk/vatprism/pull/141
50 patches = [ ./0001-Fix-build-on-JDK-21.patch ];
55 desktopName = "VATprism";
63 if (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) then
64 "sha256-x0nFt2C7dZqMdllI1+Io9SPBY2J/dVgBTVb9T24vFFI="
66 "sha256-9uyNCUqnMgpiwm2kz544pWNB/SkRpASm2Dln0e4yZos=";
70 # create the bin directory
71 mkdir -p $out/bin $out/share/icons/hicolor/256x256/apps
74 # Maven already setup the classpath to use m2 repository layout
75 # with the prefix of lib/
76 cp target-fat-jar/vatsim-map-${version}-fat.jar $out/
77 cp src/main/resources/net/marvk/fs/vatsim/map/icon-256.png $out/share/icons/hicolor/256x256/apps/vatprism.png
79 # create a wrapper that will automatically set the classpath
80 # this should be the paths from the dependency derivation
81 makeWrapper ${jdk}/bin/java $out/bin/vatprism \
82 --add-flags "-jar $out/vatsim-map-${version}-fat.jar" \
83 --set JAVA_HOME ${jdk.home} \
84 --suffix LD_LIBRARY_PATH : ${libPath}
89 description = "VATSIM map and data explorer";
91 VATprism is a VATSIM Map and VATSIM Data Explorer, VATSIM being the
92 Virtual Air Traffic Simulation Network. VATprism allows users to explore
93 available ATC services, connected pilots, Airports, Flight and Upper
94 Information Regions and more!
96 homepage = "https://vatprism.org/";
97 mainProgram = "vatprism";
98 license = lib.licenses.agpl3Plus;
99 platforms = lib.platforms.linux;
100 maintainers = with lib.maintainers; [ thepuzzlemaker ];