mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
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
|
|
'';
|
|
} |