nixpkgs-suyu/pkgs/development/interpreters/clojure/wrapper.nix

11 lines
236 B
Nix
Raw Normal View History

{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
'';
}