mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #164048 from hqurve/jupyter-extra-paths
Jupyter kernel: link extra paths and fix missing docs in sagemath jupyter
This commit is contained in:
commit
95d4ce2175
4 changed files with 21 additions and 13 deletions
|
@ -143,6 +143,9 @@ in {
|
|||
language = "python";
|
||||
logo32 = "''${env.sitePackages}/ipykernel/resources/logo-32x32.png";
|
||||
logo64 = "''${env.sitePackages}/ipykernel/resources/logo-64x64.png";
|
||||
extraPaths = {
|
||||
"cool.txt" = pkgs.writeText "cool" "cool content";
|
||||
};
|
||||
};
|
||||
}
|
||||
'';
|
||||
|
|
|
@ -56,5 +56,14 @@ with lib;
|
|||
Path to 64x64 logo png.
|
||||
'';
|
||||
};
|
||||
|
||||
extraPaths = mkOption {
|
||||
type = types.attrsOf types.path;
|
||||
default = { };
|
||||
example = literalExpression ''"{ examples = ''${env.sitePack}/IRkernel/kernelspec/kernel.js"; }'';
|
||||
description = ''
|
||||
Extra paths to link in kernel directory
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue