nixpkgs/pkgs/applications/jedit/wrapper.nix

19 lines
354 B
Nix
Raw Normal View History

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