Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
50ec3431
Commit
50ec3431
authored
Nov 23, 2019
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for jupyterlabAppDir
parent
aee398a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
release-8.6.nix
release-8.6.nix
+2
-1
release-8.8.nix
release-8.8.nix
+2
-1
release.nix
release.nix
+5
-1
No files found.
release-8.6.nix
View file @
50ec3431
{
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
;
}
release-8.8.nix
View file @
50ec3431
{
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
;
}
release.nix
View file @
50ec3431
{
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/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment