6 * jPSXdec needs to be built with no later than JDK8, but
7 * should be run with the latest to get HiDPI fixes, etc.
19 description = "Cross-platform PlayStation 1 audio and video converter";
21 desktopItem = makeDesktopItem {
25 comment = description;
26 desktopName = "jPSXdec";
27 categories = [ "AudioVideo" "Utility" ];
30 stdenv.mkDerivation rec {
31 inherit pname version;
33 src = fetchFromGitHub {
37 sha256 = "0wnfvvcyldf699b08lzlc0gshl7rn09a6q4i7jmr41izlcdszdbz";
40 nativeBuildInputs = [ ant jdk unoconv makeWrapper ];
41 buildInputs = [ jre ];
44 ./0001-jpsxdec-hackfix-build-with-newer-JDKs.patch
51 mkdir -p _ant/release/doc/
52 unoconv -d document -f pdf -o _ant/release/doc/jPSXdec-manual.pdf doc/jPSXdec-manual.odt
62 mkdir -p $out/{bin,share/pixmaps}
63 mv _ant/release $out/jpsxdec
65 makeWrapper ${jre}/bin/java $out/bin/jpsxdec \
66 --add-flags "-jar $out/jpsxdec/jpsxdec.jar"
68 cp ${src}/jpsxdec/src/jpsxdec/gui/icon48.png $out/share/pixmaps/${pname}.png
69 ln -s ${desktopItem}/share/applications $out/share
76 homepage = "https://jpsxdec.blogspot.com/";
77 platforms = platforms.all;
79 url = "https://raw.githubusercontent.com/m35/jpsxdec/readme/.github/LICENSE.md";
82 maintainers = with maintainers; [ zane ];