mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03: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
|
|
'';
|
|
} |