@@ -0,0 +1,47 @@
1+{ stdenv, cabal-install, mkCabalProjectPkgSet, callCabalProjectToNix, importAndFilterProject }:
6+ plan = importAndFilterProject (callCabalProjectToNix {
9+ pkgSet = mkCabalProjectPkgSet {
10+ plan-pkgs = plan.pkgs;
12+ # Package has no exposed modules which causes
13+ # haddock: No input file(s)
14+ packages.bytestring-builder.doHaddock = false;
18+ env = pkgSet.config.hsPkgs.shellFor {};
21+ stdenv.mkDerivation {
22+ name = "shell-for-test";
25+ ########################################################################
26+ # test shell-for with an example program
28+ cp ${./pkg/src}/*.hs .
30+ printf "checking that the shell env has the dependencies...\n" >& 2
31+ ${env.ghc}/bin/runghc conduit-test.hs
36+ meta.platforms = platforms.all;
37+ meta.disabled = stdenv.hostPlatform.isMusl;
40+ # Used for debugging with nix repl
43+ # Used for testing externally with nix-shell (../tests.sh).