diff options
author | Samuel Gräfenstein <git@samuelgrf.com> | 2020-10-01 17:41:34 +0200 |
---|---|---|
committer | Samuel Gräfenstein <git@samuelgrf.com> | 2020-10-02 18:21:07 +0200 |
commit | afa5fba4939d13236e2e91b52168e04a88e27127 (patch) | |
tree | a04e89a1a7905006bcc76690e3b3a66b88520ada /pkgs/development/tools/jpexs | |
parent | b3f8d3b80dd23bda34fae767bd63f1eaea54e164 (diff) | |
download | nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar.gz nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar.bz2 nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar.lz nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar.xz nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.tar.zst nixpkgs-afa5fba4939d13236e2e91b52168e04a88e27127.zip |
jpexs: init at 11.3.0
Diffstat (limited to 'pkgs/development/tools/jpexs')
-rw-r--r-- | pkgs/development/tools/jpexs/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/tools/jpexs/default.nix b/pkgs/development/tools/jpexs/default.nix new file mode 100644 index 00000000000..87bba3847b5 --- /dev/null +++ b/pkgs/development/tools/jpexs/default.nix @@ -0,0 +1,57 @@ +{ stdenv, fetchzip, makeWrapper, makeDesktopItem, jdk8 }: + +stdenv.mkDerivation rec { + pname = "jpexs"; + version = "11.3.0"; + + src = fetchzip { + url = "${meta.homepage}/releases/download/version${version}/ffdec_${version}.zip"; + sha256 = "0d1xmq21vdpn0glwfzr00s62ic8jynmgmgxl0m1834xqf3ma0ihv"; + 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; + categories = "Development;Java;"; + extraEntries = '' + StartupWMClass=com-jpexs-decompiler-flash-gui-Main + ''; + }; + + meta = with stdenv.lib; { + description = "Flash SWF decompiler and editor"; + 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"; + license = licenses.gpl3; + platforms = jdk8.meta.platforms; + maintainers = with maintainers; [ samuelgrf ]; + }; +} |