File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 16
16
with-packages = haskell . callPackage ./with-packages { inherit util ; } ;
17
17
builder-haddock = haskell . callPackage ./builder-haddock { } ;
18
18
stack-simple = haskell . callPackage ./stack-simple { } ;
19
- snapshots = haskell . callPackage ./snapshots { } ;
20
19
shell-for = haskell . callPackage ./shell-for { } ;
20
+ snapshots = haskell . callPackage ./snapshots { } ;
21
21
callStackToNix = haskell . callPackage ./callStackToNix { } ;
22
22
callCabalProjectToNix = haskell . callPackage ./call-cabal-project-to-nix { } ;
23
23
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