diff options
author | volth <volth@webmaster.ms> | 2018-04-17 15:24:47 +0000 |
---|---|---|
committer | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-04-17 10:24:47 -0500 |
commit | 9b87fbb130683fb876d49c650edd1918500630a6 (patch) | |
tree | 3327cc2d7184411af48d612babd4aa24614f0837 /pkgs | |
parent | 1edf668a1c67a4a293f6a5364e3a41ae7b42cf45 (diff) | |
download | nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar.gz nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar.bz2 nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar.lz nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar.xz nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.tar.zst nixpkgs-9b87fbb130683fb876d49c650edd1918500630a6.zip |
processing3: init at 3.3.7 (#36851)
* processing3: init at 3.3.7 * processing: add _JAVA_OPTIONS -Dawt.useSystemAAFontSettings=lcd it uses own ttf fonts which expect antialiasing
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/graphics/processing3/default.nix | 53 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/processing3/default.nix b/pkgs/applications/graphics/processing3/default.nix new file mode 100644 index 00000000000..4ef078fdbac --- /dev/null +++ b/pkgs/applications/graphics/processing3/default.nix @@ -0,0 +1,53 @@ +{ stdenv, callPackage, fetchFromGitHub, makeWrapper, ant, jdk, rsync, javaPackages, libXxf86vm }: + +stdenv.mkDerivation rec { + version = "3.3.7"; + name = "processing3-${version}"; + + src = fetchFromGitHub { + owner = "processing"; + repo = "processing"; + rev = "processing-0264-3.3.7"; + sha256 = "0a20z19lmc4xarfnr7xshcmlv3xkc2dgjxknis0iv79gxnwlqhpq"; + }; + + nativeBuildInputs = [ ant rsync makeWrapper ]; + buildInputs = [ jdk ]; + + buildPhase = '' + # use compiled jogl to avoid patchelf'ing .so files inside jars + rm core/library/*.jar + cp ${javaPackages.jogl_2_3_2}/share/java/*.jar core/library/ + + # suppress "Not fond of this Java VM" message box + substituteInPlace app/src/processing/app/platform/LinuxPlatform.java \ + --replace 'Messages.showWarning' 'if (false) Messages.showWarning' + + ( cd build + substituteInPlace build.xml --replace "jre-download," "" # do not download jre1.8.0_144 + mkdir -p linux/jre1.8.0_144 # fake dir to avoid error + ant build ) + ''; + + installPhase = '' + mkdir $out + cp -dpR build/linux/work $out/${name} + + rmdir $out/${name}/java + ln -s ${jdk} $out/${name}/java + + makeWrapper $out/${name}/processing $out/bin/processing \ + --prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd \ + --prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib + makeWrapper $out/${name}/processing-java $out/bin/processing-java \ + --prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd \ + --prefix LD_LIBRARY_PATH : ${libXxf86vm}/lib + ''; + + meta = with stdenv.lib; { + description = "A language and IDE for electronic arts"; + homepage = https://processing.org; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a7ece01b27c..ae3090d4583 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17331,6 +17331,11 @@ with pkgs; qiv = callPackage ../applications/graphics/qiv { }; + processing = processing3; + processing3 = callPackage ../applications/graphics/processing3 { + jdk = oraclejdk8; + }; + # perhaps there are better apps for this task? It's how I had configured my preivous system. # And I don't want to rewrite all rules procmail = callPackage ../applications/misc/procmail { }; |