Files
nixpkgs/pkgs/by-name/ir/iruby/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
977 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;
};
};
passthru.updateScript = ./update.sh;
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