File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 17
17
builder-haddock = haskell . callPackage ./builder-haddock { } ;
18
18
stack-simple = haskell . callPackage ./stack-simple { } ;
19
19
shell-for = haskell . callPackage ./shell-for { } ;
20
+ snapshots = haskell . callPackage ./snapshots { inherit util ; } ;
20
21
callStackToNix = haskell . callPackage ./callStackToNix { } ;
21
22
callCabalProjectToNix = haskell . callPackage ./call-cabal-project-to-nix { } ;
22
23
Original file line number Diff line number Diff line change
1
+ { stdenv , util , snapshots } :
2
+
3
+ with stdenv . lib ;
4
+ with util ;
5
+
6
+ let
7
+ env = snapshots . "lts-12.21" . ghcWithHoogle
8
+ ( ps : with ps ; [ conduit conduit-extra resourcet ] ) ;
9
+
10
+ in
11
+ stdenv . mkDerivation {
12
+ name = "shell-for-test" ;
13
+
14
+ buildCommand = ''
15
+ ########################################################################
16
+ # test snapshot ghcWithHoogle
17
+
18
+ printf "checking that the ghcWithPackages env has the package...\n" >& 2
19
+ ${ env } /bin/ghc-pkg list | grep conduit
20
+
21
+ touch $out
22
+ '' ;
23
+
24
+ meta . platforms = platforms . all ;
25
+ passthru = {
26
+ # Used for testing externally with nix-shell (../tests.sh).
27
+ # This just adds cabal-install to the existing shell.
28
+ env = addCabalInstall env ;
29
+ } ;
30
+ }
You can’t perform that action at this time.
0 commit comments