Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
42 lines
918 B
Nix
42 lines
918 B
Nix
{ lib
|
|
, bundlerApp
|
|
}:
|
|
|
|
# Jupyter console:
|
|
# nix run --impure --expr 'with import <nixpkgs> {}; jupyter-console.withSingleKernel iruby.definition'
|
|
|
|
# Jupyter notebook:
|
|
# nix run --impure --expr 'with import <nixpkgs> {}; jupyter.override { definitions.iruby = iruby.definition; }'
|
|
|
|
let
|
|
self = bundlerApp {
|
|
pname = "iruby";
|
|
gemdir = ./.;
|
|
exes = [ "iruby" ];
|
|
|
|
passthru = {
|
|
definition = {
|
|
displayName = "IRuby";
|
|
argv = [
|
|
"${self}/bin/iruby"
|
|
"kernel"
|
|
"{connection_file}"
|
|
];
|
|
language = "ruby";
|
|
logo32 = null;
|
|
logo64 = null;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Ruby kernel for Jupyter";
|
|
homepage = "https://github.com/SciRuby/iruby";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ costrouc thomasjm ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
};
|
|
|
|
in
|
|
|
|
self
|