Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argotk
Commits
9d6d6b75
Commit
9d6d6b75
authored
Feb 12, 2019
by
Valentin Reis
Browse files
env var fixes.
parent
4c86e9c6
Pipeline
#5182
passed with stage
in 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
default.nix
View file @
9d6d6b75
...
...
@@ -26,7 +26,8 @@ in rec
argotk
=
hpkgs
.
argotk
.
overrideAttrs
(
old
:{
installPhase
=
old
.
installPhase
+
''
mkdir $out/share/
ARGONIX_SHARE=/tmp $out/bin/argotk --bash-completion-script argotk > $out/share/argotk.sh
ARGOTK_SHARE=share $out/bin/argotk --bash-completion-script argotk > $out/share/argotk.sh
cp -r share/* $out/share/
''
;
});
...
...
@@ -38,7 +39,7 @@ in rec
preCommit
=
pkgs
.
mkShell
{
name
=
"shake"
;
ARGO
NIX
_SHARE
=
"
/tmp
"
;
ARGO
TK
_SHARE
=
"
${
argotk
}
/share
"
;
buildInputs
=
[
(
pkgs
.
haskellPackages
.
ghcWithPackages
(
p
:
with
p
;
[
argotk
...
...
src/argotk.hs
View file @
9d6d6b75
...
...
@@ -312,7 +312,7 @@ clean StackArgs {..} = cleanLeftovers workingDirectory
main
::
IO
()
main
=
do
argonixShare
<-
getEnv
"ARGO
NIX
_SHARE"
argonixShare
<-
getEnv
"ARGO
TK
_SHARE"
let
a
=
def
{
shareDir
=
ShareDir
$
decodeString
argonixShare
}
turtle
<-
execParser
(
info
(
opts
a
<**>
helper
)
idm
)
sh
turtle
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