nix expression creating startup wrapper for jedit
svn path=/nixpkgs/trunk/; revision=9720
This commit is contained in:
parent
27c46e0df2
commit
d934acfb92
18
pkgs/applications/jedit/wrapper.nix
Normal file
18
pkgs/applications/jedit/wrapper.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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}
|
||||||
|
";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user