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
495756d7
Commit
495756d7
authored
Sep 11, 2021
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release.nix: remove unnecessary wrapProgram
parent
07623f88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
release.nix
release.nix
+2
-10
No files found.
release.nix
View file @
495756d7
...
@@ -54,15 +54,13 @@ let
...
@@ -54,15 +54,13 @@ let
ihaskellEnv
=
haskellPackages
.
ghcWithPackages
(
self
:
[
self
.
ihaskell
]
++
packages
self
);
ihaskellEnv
=
haskellPackages
.
ghcWithPackages
(
self
:
[
self
.
ihaskell
]
++
packages
self
);
jupyterlab
=
nixpkgs
.
python3
.
withPackages
(
ps
:
[
ps
.
jupyterlab
]
++
pythonPackages
ps
);
jupyterlab
=
nixpkgs
.
python3
.
withPackages
(
ps
:
[
ps
.
jupyterlab
]
++
pythonPackages
ps
);
ihaskellWrapperSh
=
nixpkgs
.
writeScriptBin
"ihaskell-wrapper"
''
ihaskellWrapperSh
=
nixpkgs
.
writeShellScriptBin
"ihaskell-wrapper"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d|
${
nixpkgs
.
coreutils
}
/bin/tr ' ' ':'):$GHC_PACKAGE_PATH"
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d|
${
nixpkgs
.
coreutils
}
/bin/tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
lib
.
makeBinPath
([
ihaskellEnv
jupyterlab
]
++
systemPackages
nixpkgs
)
}
''$
{PATH:+:}$PATH"
export PATH="
${
nixpkgs
.
lib
.
makeBinPath
([
ihaskellEnv
jupyterlab
]
++
systemPackages
nixpkgs
)
}
''$
{PATH:+:}$PATH"
exec
${
ihaskellEnv
}
/bin/ihaskell "$@"
exec
${
ihaskellEnv
}
/bin/ihaskell "$@"
''
;
''
;
ihaskellJupyterCmdSh
=
cmd
:
extraArgs
:
nixpkgs
.
writeScriptBin
"ihaskell-
${
cmd
}
"
''
ihaskellJupyterCmdSh
=
cmd
:
extraArgs
:
nixpkgs
.
writeShellScriptBin
"ihaskell-
${
cmd
}
"
''
#!
${
nixpkgs
.
stdenv
.
shell
}
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d|
${
nixpkgs
.
coreutils
}
/bin/tr ' ' ':'):$GHC_PACKAGE_PATH"
export GHC_PACKAGE_PATH="$(echo
${
ihaskellEnv
}
/lib/*/package.conf.d|
${
nixpkgs
.
coreutils
}
/bin/tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="
${
nixpkgs
.
lib
.
makeBinPath
([
ihaskellEnv
jupyterlab
]
++
systemPackages
nixpkgs
)
}
''$
{PATH:+:}$PATH"
export PATH="
${
nixpkgs
.
lib
.
makeBinPath
([
ihaskellEnv
jupyterlab
]
++
systemPackages
nixpkgs
)
}
''$
{PATH:+:}$PATH"
${
ihaskellEnv
}
/bin/ihaskell install \
${
ihaskellEnv
}
/bin/ihaskell install \
...
@@ -76,18 +74,12 @@ let
...
@@ -76,18 +74,12 @@ let
in
in
nixpkgs
.
buildEnv
{
nixpkgs
.
buildEnv
{
name
=
"ihaskell-with-packages"
;
name
=
"ihaskell-with-packages"
;
buildInputs
=
[
nixpkgs
.
makeWrapper
];
paths
=
[
ihaskellEnv
jupyterlab
];
paths
=
[
ihaskellEnv
jupyterlab
];
postBuild
=
''
postBuild
=
''
ln -s
${
ihaskellJupyterCmdSh
"lab"
appDir
}
/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
"notebook"
""
}
/bin/ihaskell-notebook $out/bin/
ln -s
${
ihaskellJupyterCmdSh
"nbconvert"
""
}
/bin/ihaskell-nbconvert $out/bin/
ln -s
${
ihaskellJupyterCmdSh
"nbconvert"
""
}
/bin/ihaskell-nbconvert $out/bin/
ln -s
${
ihaskellJupyterCmdSh
"console"
"--kernel=haskell"
}
/bin/ihaskell-console $out/bin/
ln -s
${
ihaskellJupyterCmdSh
"console"
"--kernel=haskell"
}
/bin/ihaskell-console $out/bin/
for prg in $out/bin"/"*;do
if [[ -f $prg && -x $prg ]]; then
wrapProgram $prg --set PYTHONPATH "$(echo
${
jupyterlab
}
/lib/*/site-packages)"
fi
done
''
;
''
;
passthru
=
{
passthru
=
{
...
...
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