nixpkgs/pkgs/applications/jedit/wrapper.nix
Marc Weber d934acfb92 nix expression creating startup wrapper for jedit
svn path=/nixpkgs/trunk/; revision=9720
2007-11-16 17:09:32 +00:00

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}
";
}