13 # nix run --impure --expr 'with import <nixpkgs> {}; jupyter-console.withSingleKernel clojupyter.definition'
16 # nix run --impure --expr 'with import <nixpkgs> {}; jupyter.override { definitions.clojure = clojupyter.definition; }'
19 cljdeps = import ./deps.nix { inherit pkgs; };
20 classp = cljdeps.makeClasspaths { };
22 shellScript = writeShellScript "clojupyter" ''
23 ${jre}/bin/java -cp ${classp} clojupyter.kernel.core "$@"
30 description = "Jupyter kernel for Clojure";
31 homepage = "https://github.com/clojupyter/clojupyter";
32 sourceProvenance = with sourceTypes; [ binaryBytecode ]; # deps from maven
33 license = licenses.mit;
34 maintainers = with maintainers; [ thomasjm ];
35 platforms = jre.meta.platforms;
41 name = "clojupyter-logo-${size}x${size}.png";
43 src = fetchFromGitHub {
47 sha256 = "sha256-BCzcPnLSonm+ELFU4JIIzLPlVnP0VzlrRSGxOd/LFow=";
50 buildInputs = [ imagemagick ];
56 convert ./resources/clojupyter/assets/logo-64x64.png -resize ${size}x${size} $out
66 runCommand "clojupyter"
77 ln -s $shellScript $out/bin/clojupyter
81 displayName = "Clojure";
83 "${launcher}/bin/clojupyter"
87 logo32 = sizedLogo "32";
88 logo64 = sizedLogo "64";