diff options
author | volth <volth@webmaster.ms> | 2018-07-15 23:27:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 23:27:18 +0000 |
commit | 3cf0c5d00713ef6686b3f93bdb7db84ea6863b40 (patch) | |
tree | fe4b17ea9a5d12cc603543572e2be4d65d64e452 /pkgs/applications | |
parent | e3d6f6f202742777e527b55390598ee403b44028 (diff) | |
download | nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar.gz nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar.bz2 nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar.lz nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar.xz nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.tar.zst nixlib-3cf0c5d00713ef6686b3f93bdb7db84ea6863b40.zip |
processing3: fix sandbox build
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/graphics/processing3/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/processing3/default.nix b/pkgs/applications/graphics/processing3/default.nix index 87566950bfe5..803257d93929 100644 --- a/pkgs/applications/graphics/processing3/default.nix +++ b/pkgs/applications/graphics/processing3/default.nix @@ -1,4 +1,4 @@ -{ stdenv, callPackage, fetchFromGitHub, makeWrapper, ant, jdk, rsync, javaPackages, libXxf86vm, gsettings-desktop-schemas }: +{ stdenv, callPackage, fetchFromGitHub, fetchurl, xmlstarlet, makeWrapper, ant, jdk, rsync, javaPackages, libXxf86vm, gsettings-desktop-schemas }: stdenv.mkDerivation rec { version = "3.3.7"; @@ -19,6 +19,14 @@ stdenv.mkDerivation rec { rm core/library/*.jar cp ${javaPackages.jogl_2_3_2}/share/java/*.jar core/library/ + # do not download a file during build + ${xmlstarlet}/bin/xmlstarlet ed --inplace -P -d '//get[@src="http://download.processing.org/reference.zip"]' build/build.xml + install -D -m0444 ${fetchurl { + url = http://download.processing.org/reference.zip; + sha256 = "104zig026y8vbl4qksmscjq0bms8mi2jmri1ijdlbkxcqnv9bnlf"; + } + } ./java/reference.zip + # suppress "Not fond of this Java VM" message box substituteInPlace app/src/processing/app/platform/LinuxPlatform.java \ --replace 'Messages.showWarning' 'if (false) Messages.showWarning' |