2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, makeWrapper, makeDesktopItem, jdk8 }:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jpexs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "18.4.1";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2023-07-15 17:15:38 +00:00
|
|
|
url = "https://github.com/jindrapetrik/jpexs-decompiler/releases/download/version${version}/ffdec_${version}.zip";
|
|
|
|
sha256 = "sha256-aaEL3xJZkFw78zo3IyauWJM9kOo0rJTUSKmWsv9xQZ8=";
|
2020-10-07 09:15:18 +00:00
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/{ffdec,icons/hicolor/512x512/apps}
|
|
|
|
|
|
|
|
cp ffdec.jar $out/share/ffdec
|
|
|
|
cp -r lib $out/share/ffdec
|
|
|
|
cp icon.png $out/share/icons/hicolor/512x512/apps/ffdec.png
|
|
|
|
cp -r ${desktopItem}/share/applications $out/share
|
|
|
|
|
|
|
|
makeWrapper ${jdk8}/bin/java $out/bin/ffdec \
|
|
|
|
--add-flags "-jar $out/share/ffdec/ffdec.jar"
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = "ffdec";
|
|
|
|
exec = name;
|
|
|
|
icon = name;
|
|
|
|
desktopName = "JPEXS Free Flash Decompiler";
|
|
|
|
genericName = "Flash Decompiler";
|
|
|
|
comment = meta.description;
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Development" "Java" ];
|
|
|
|
startupWMClass = "com-jpexs-decompiler-flash-gui-Main";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-07 09:15:18 +00:00
|
|
|
description = "Flash SWF decompiler and editor";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ffdec";
|
2020-10-07 09:15:18 +00:00
|
|
|
longDescription = ''
|
|
|
|
Open-source Flash SWF decompiler and editor. Extract resources,
|
|
|
|
convert SWF to FLA, edit ActionScript, replace images, sounds,
|
|
|
|
texts or fonts.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jindrapetrik/jpexs-decompiler";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = jdk8.meta.platforms;
|
2021-04-05 15:23:46 +00:00
|
|
|
maintainers = [ ];
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
}
|