aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix b/infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix
index 218fbe8fc1fc..0282dc95f72e 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/editors/eclipse/build-eclipse.nix
@@ -1,6 +1,6 @@
{ stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender
, zlib, jdk, glib, gtk, libXtst, gsettings-desktop-schemas, webkitgtk
-, makeWrapper, ... }:
+, makeWrapper, perl, ... }:
{ name, src ? builtins.getAttr stdenv.hostPlatform.system sources, sources ? null, description }:
@@ -50,6 +50,9 @@ stdenv.mkDerivation rec {
cp ${desktopItem}/share/applications/* $out/share/applications
mkdir -p $out/share/pixmaps
ln -s $out/eclipse/icon.xpm $out/share/pixmaps/eclipse.xpm
+
+ # ensure eclipse.ini does not try to use a justj jvm, as those aren't compatible with nix
+ ${perl}/bin/perl -i -p0e 's|-vm\nplugins/org.eclipse.justj.*/jre/bin\n||' $out/eclipse/eclipse.ini
''; # */
meta = {