nixpkgs-suyu/pkgs/development/interpreters/clojure/wrapper.nix
Marco Maggesi a02960ae4e Add clojure.
(Install with command
   nix-env -i clojure-wrapper
 start REPL with command
   clojure)


svn path=/nixpkgs/trunk/; revision=28956
2011-09-01 13:38:59 +00:00

11 lines
No EOL
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
'';
}