1{ stdenv, haskellPackages, snapshots, recurseIntoAttrs, runCommand, testSrc }:
6 env = snapshots."lts-14.13".ghcWithHoogle
7 (ps: with ps; [ conduit conduit-extra resourcet ]);
9in recurseIntoAttrs (if stdenv.hostPlatform.isWindows
11 let skip = runCommand "skip-test-snapshot" {} ''
12 echo "Skipping snapshot test on windows as does not work yet" >& 2
21 run = stdenv.mkDerivation {
22 name = "shell-for-test";
24 buildCommand = if stdenv.hostPlatform.isWindows
26 printf "snapshot test is not working yet for windows. skipping. " >& 2
30 ########################################################################
31 # test single component from haskellPackages
33 printf "checking that the latest LTS snapshot has the lens package...\n" >& 2
34 test -d ${haskellPackages.lens.components.library}
36 ########################################################################
37 # test snapshot ghcWithHoogle
39 printf "checking that the ghcWithPackages env has the package...\n" >& 2
40 ${env}/bin/${env.targetPrefix}ghc-pkg list | grep conduit
43 # Hoogle support is currently disabled in cross compiler shells
44 + (optionalString (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64) ''
45 printf "checking that the ghcWithPackages env has a hoogle index...\n" >& 2
46 ${env}/bin/hoogle search Conduit --count=100 | grep ConduitT
52 meta.platforms = platforms.all;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list