forked from mirrors/nixpkgs
a02960ae4e
(Install with command nix-env -i clojure-wrapper start REPL with command clojure) svn path=/nixpkgs/trunk/; revision=28956
11 lines
236 B
Nix
11 lines
236 B
Nix
{writeTextFile, jre, clojure}:
|
|
|
|
writeTextFile {
|
|
name = "clojure-wrapper";
|
|
executable = true;
|
|
destination = "/bin/clojure";
|
|
text = ''
|
|
#!/bin/sh
|
|
exec ${jre}/bin/java -cp ${clojure}/lib/java/clojure.jar clojure.main
|
|
'';
|
|
} |