mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-17 20:06:07 +00:00
Add support for jupyterlabAppDir
This commit is contained in:
parent
aee398a82f
commit
50ec34316b
@ -1,8 +1,9 @@
|
||||
{ compiler ? "ghc865"
|
||||
, jupyterlabAppDir ? null
|
||||
, nixpkgs ? import <nixpkgs> {}
|
||||
, packages ? (_: [])
|
||||
, pythonPackages ? (_: [])
|
||||
, rtsopts ? "-M3g -N2"
|
||||
, systemPackages ? (_: [])
|
||||
}:
|
||||
import (./release.nix) { inherit compiler nixpkgs packages pythonPackages rtsopts systemPackages; }
|
||||
import (./release.nix) { inherit compiler jupyterlabAppDir nixpkgs packages pythonPackages rtsopts systemPackages; }
|
||||
|
@ -1,8 +1,9 @@
|
||||
{ compiler ? "ghc881"
|
||||
, jupyterlabAppDir ? null
|
||||
, nixpkgs ? import <nixpkgs> {}
|
||||
, packages ? (_: [])
|
||||
, pythonPackages ? (_: [])
|
||||
, rtsopts ? "-M3g -N2"
|
||||
, systemPackages ? (_: [])
|
||||
}:
|
||||
import (./release.nix) { inherit compiler nixpkgs packages pythonPackages rtsopts systemPackages; }
|
||||
import (./release.nix) { inherit compiler jupyterlabAppDir nixpkgs packages pythonPackages rtsopts systemPackages; }
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ compiler
|
||||
, jupyterlabAppDir ? null
|
||||
, nixpkgs ? import <nixpkgs> {}
|
||||
, packages ? (_: [])
|
||||
, pythonPackages ? (_: [])
|
||||
@ -69,13 +70,16 @@ let
|
||||
--use-rtsopts="${rtsopts}" \
|
||||
&& ${jupyterlab}/bin/jupyter ${cmd} ${extraArgs} "$@"
|
||||
'';
|
||||
appDir = if jupyterlabAppDir != null
|
||||
then "--app-dir=${jupyterlabAppDir}"
|
||||
else "";
|
||||
in
|
||||
nixpkgs.buildEnv {
|
||||
name = "ihaskell-with-packages";
|
||||
buildInputs = [ nixpkgs.makeWrapper ];
|
||||
paths = [ ihaskellEnv jupyterlab ];
|
||||
postBuild = ''
|
||||
ln -s ${ihaskellJupyterCmdSh "lab" ""}/bin/ihaskell-lab $out/bin/
|
||||
ln -s ${ihaskellJupyterCmdSh "lab" appDir}/bin/ihaskell-lab $out/bin/
|
||||
ln -s ${ihaskellJupyterCmdSh "notebook" ""}/bin/ihaskell-notebook $out/bin/
|
||||
ln -s ${ihaskellJupyterCmdSh "nbconvert" ""}/bin/ihaskell-nbconvert $out/bin/
|
||||
ln -s ${ihaskellJupyterCmdSh "console" "--kernel=haskell"}/bin/ihaskell-console $out/bin/
|
||||
|
Loading…
x
Reference in New Issue
Block a user