mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
5bca69ac34
Unneded args.something replaced with args: with args; line. After this line args is the only place where we can recieve variables from. Also removed several buildInputs = []; lines. svn path=/nixpkgs/trunk/; revision=10415
19 lines
335 B
Nix
19 lines
335 B
Nix
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}
|
|
";
|
|
}
|