diff options
Diffstat (limited to 'pkgs/applications/jedit/wrapper.nix')
-rw-r--r-- | pkgs/applications/jedit/wrapper.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/jedit/wrapper.nix b/pkgs/applications/jedit/wrapper.nix new file mode 100644 index 00000000000..8af3d96918d --- /dev/null +++ b/pkgs/applications/jedit/wrapper.nix @@ -0,0 +1,18 @@ +args: with args; +stdenv.mkDerivation { + name = jedit.name+"_startscript"; + + java = jre+"/bin/java"; + jeditjar = jedit+"/lib/jedit.jar"; + + phases = "buildPhase"; + + buildPhase = " +ensureDir \$out/bin +cat > \$out/bin/${jedit.name} << EOF +#!/bin/sh +exec $java -jar $jeditjar \\$* +EOF + chmod +x \$out/bin/${jedit.name} +"; +} |