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
76525c38
Commit
76525c38
authored
Dec 01, 2017
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release{,-8.2}.nix: add ihaskell-nbconvert script
parent
71cca569
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
release-8.2.nix
release-8.2.nix
+7
-0
release.nix
release.nix
+7
-0
No files found.
release-8.2.nix
View file @
76525c38
...
...
@@ -104,6 +104,12 @@ let
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskellEnv
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
''
;
nbconvertSh
=
nixpkgs
.
writeScriptBin
"ihaskell-nbconvert"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskellEnv
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter nbconvert "$@"
''
;
in
nixpkgs
.
buildEnv
{
name
=
"ihaskell-with-packages"
;
...
...
@@ -111,6 +117,7 @@ nixpkgs.buildEnv {
paths
=
[
ihaskellEnv
jupyter
];
postBuild
=
''
ln -s
${
ihaskellSh
}
/bin/ihaskell-notebook $out/bin/
ln -s
${
nbconvertSh
}
/bin/ihaskell-nbconvert $out/bin/
for prg in $out/bin"/"*;do
if [[ -f $prg && -x $prg ]]; then
wrapProgram $prg --set PYTHONPATH "$(echo
${
jupyter
}
/lib/*/site-packages)"
...
...
release.nix
View file @
76525c38
...
...
@@ -71,6 +71,12 @@ let
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskellEnv
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
''
;
nbconvertSh
=
nixpkgs
.
writeScriptBin
"ihaskell-nbconvert"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskellEnv
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter nbconvert "$@"
''
;
in
nixpkgs
.
buildEnv
{
name
=
"ihaskell-with-packages"
;
...
...
@@ -78,6 +84,7 @@ nixpkgs.buildEnv {
paths
=
[
ihaskellEnv
jupyter
];
postBuild
=
''
ln -s
${
ihaskellSh
}
/bin/ihaskell-notebook $out/bin/
ln -s
${
nbconvertSh
}
/bin/ihaskell-nbconvert $out/bin/
for prg in $out/bin"/"*;do
if [[ -f $prg && -x $prg ]]; then
wrapProgram $prg --set PYTHONPATH "$(echo
${
jupyter
}
/lib/*/site-packages)"
...
...
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