mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 02:46:28 +00:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
19 lines
334 B
Nix
19 lines
334 B
Nix
args: with args;
|
|
stdenv.mkDerivation {
|
|
name = jedit.name+"_startscript";
|
|
|
|
java = jre+"/bin/java";
|
|
jeditjar = jedit+"/lib/jedit.jar";
|
|
|
|
phases = "buildPhase";
|
|
|
|
buildPhase = "
|
|
mkdir -p \$out/bin
|
|
cat > \$out/bin/${jedit.name} << EOF
|
|
#!/bin/sh
|
|
exec $java -jar $jeditjar \\$*
|
|
EOF
|
|
chmod +x \$out/bin/${jedit.name}
|
|
";
|
|
}
|