d934acfb92
svn path=/nixpkgs/trunk/; revision=9720
19 lines
354 B
Nix
19 lines
354 B
Nix
args:
|
|
args.stdenv.mkDerivation {
|
|
name = args.jedit.name+"_startscript";
|
|
|
|
java = args.jre+"/bin/java";
|
|
jeditjar = args.jedit+"/lib/jedit.jar";
|
|
|
|
phases = "buildPhase";
|
|
|
|
buildPhase = "
|
|
ensureDir \$out/bin
|
|
cat > \$out/bin/${args.jedit.name} << EOF
|
|
#!/bin/sh
|
|
exec $java -jar $jeditjar \\$*
|
|
EOF
|
|
chmod +x \$out/bin/${args.jedit.name}
|
|
";
|
|
}
|