mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
5edae446d8
svn path=/nixpkgs/trunk/; revision=11978
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}
|
|
";
|
|
}
|