File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ if [ ! -z ${CI+x} ]; then
28
28
export XDG_CONFIG_HOME=$HOME /.config
29
29
mkdir -p $XDG_CONFIG_HOME /nix
30
30
cp ./nix.conf $XDG_CONFIG_HOME /nix
31
+ export NIX_CONFIG=$( cat ./nix.conf)
31
32
echo >& 2
32
33
fi
33
34
@@ -149,4 +150,13 @@ nix build $NIX_BUILD_ARGS --no-link \
149
150
extra-hackage.run.project.hsPkgs.external-package-user.components.exes.external-package-user
150
151
echo >& 2
151
152
153
+ printf " *** End-2-end test of hix project initialization and flakes development shell ...\n" >& 2
154
+ HASKELL_NIX=$( pwd) /..
155
+ cd $( mktemp -d)
156
+ nix-shell -p cabal-install --run " cabal update; cabal unpack hello"
157
+ cd hello-*
158
+ nix run $HASKELL_NIX #hix -- init
159
+ nix develop --override-input haskellNix $HASKELL_NIX -c " cabal build"
160
+ echo >& 2
161
+
152
162
printf " \n*** Finished successfully\n" >& 2
You can’t perform that action at this time.
0 commit comments