File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- { stdenv , haskellPackages } :
1
+ { stdenv , haskellPackages , snapshots } :
2
2
3
3
with stdenv . lib ;
4
4
5
+ let
6
+ env = snapshots . "lts-12.21" . ghcWithHoogle
7
+ ( ps : with ps ; [ conduit conduit-extra resourcet ] ) ;
8
+
9
+ in
5
10
stdenv . mkDerivation {
6
11
name = "shell-for-test" ;
7
12
8
13
buildCommand = ''
9
14
########################################################################
10
- # test snapshot ghcWithHoogle
15
+ # test single component from haskellPackages
11
16
12
17
printf "checking that the latest LTS snapshot has the lens package...\n" >& 2
13
18
test -d ${ haskellPackages . lens . components . library }
14
19
20
+ ########################################################################
21
+ # test snapshot ghcWithHoogle
22
+
23
+ printf "checking that the ghcWithPackages env has the package...\n" >& 2
24
+ ${ env } /bin/ghc-pkg list | grep conduit
25
+
15
26
touch $out
16
27
'' ;
17
28
18
29
meta . platforms = platforms . all ;
19
- }
30
+ passthru = {
31
+ inherit env ;
32
+ } ;
33
+ }
You can’t perform that action at this time.
0 commit comments