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
77d41237
Commit
77d41237
authored
Nov 08, 2017
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release{,-8.2}.nix: unify ihaskellEnv and ihaskell
parent
8585da78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
release-8.2.nix
release-8.2.nix
+2
-3
release.nix
release.nix
+2
-3
No files found.
release-8.2.nix
View file @
77d41237
...
...
@@ -96,14 +96,13 @@ let
th-desugar
=
super
.
callHackage
"th-desugar"
"1.7"
{};
}
//
displays
self
;
};
ihaskell
=
haskellPackages
.
ihaskell
;
ihaskellEnv
=
haskellPackages
.
ghcWithPackages
(
self
:
[
self
.
ihaskell
]
++
packages
self
);
jupyter
=
nixpkgs
.
python3
.
withPackages
(
ps
:
[
ps
.
jupyter
ps
.
notebook
]);
ihaskellSh
=
nixpkgs
.
writeScriptBin
"ihaskell-notebook"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskell
ihaskell
Env
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskell
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskell
Env
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
''
;
in
nixpkgs
.
buildEnv
{
...
...
release.nix
View file @
77d41237
...
...
@@ -63,14 +63,13 @@ let
ipython-kernel
=
self
.
callCabal2nix
"ipython-kernel"
ipython-kernel-src
{};
}
//
displays
self
;
};
ihaskell
=
haskellPackages
.
ihaskell
;
ihaskellEnv
=
haskellPackages
.
ghcWithPackages
(
self
:
[
self
.
ihaskell
]
++
packages
self
);
jupyter
=
nixpkgs
.
python3
.
withPackages
(
ps
:
[
ps
.
jupyter
ps
.
notebook
]);
ihaskellSh
=
nixpkgs
.
writeScriptBin
"ihaskell-notebook"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskell
ihaskell
Env
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskell
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
export PATH="
${
nixpkgs
.
stdenv
.
lib
.
makeBinPath
([
ihaskellEnv
jupyter
]
++
systemPackages
nixpkgs
)
}
"
${
ihaskell
Env
}
/bin/ihaskell install -l $(
${
ihaskellEnv
}
/bin/ghc --print-libdir) --use-rtsopts="
${
rtsopts
}
" &&
${
jupyter
}
/bin/jupyter notebook
''
;
in
nixpkgs
.
buildEnv
{
...
...
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