diff --git a/flake.nix b/flake.nix index 963f54e..a6cb716 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,6 @@ in '' export GYEHOEK_RUNTIME=${lib.getExe final.gyehoek-runtime} export PATH=${lib.makeBinPath bin}:$PATH - export GYEHOEK_IN_NIX_BUILD=1 ''; })]; shell = { diff --git a/gyehoek.cabal b/gyehoek.cabal index b8f4b21..a29f415 100644 --- a/gyehoek.cabal +++ b/gyehoek.cabal @@ -156,11 +156,11 @@ test-suite test default-language: GHC2024 -- https://github.com/martijnbastiaan/doctest-parallel/pull/66 -test-suite doctest - import: ghcstuffs, ghcstuffs-dev - type: exitcode-stdio-1.0 - hs-source-dirs: test - main-is: doctest.hs - build-depends: - , base - , doctest-parallel >=0.1 +-- test-suite doctest +-- import: ghcstuffs, ghcstuffs-dev +-- type: exitcode-stdio-1.0 +-- hs-source-dirs: test +-- main-is: doctest.hs +-- build-depends: +-- , base +-- , doctest-parallel >=0.1 diff --git a/test/doctest.hs b/test/doctest.hs index 9534c91..625343f 100644 --- a/test/doctest.hs +++ b/test/doctest.hs @@ -7,11 +7,4 @@ import System.IO (stderr, hPutStrLn) main :: IO () -main = do - nix <- maybe False null <$> lookupEnv "GYEHOEK_IN_NIX_BUILD" - if nix then do - hPutStrLn stderr "\ - \skipping doctests in Nix build environment. \ - \see https://github.com/pcapriotti/optparse-applicative/pull/408." - else - mainFromCabal "gyehoek" =<< getArgs +main = mainFromCabal "gyehoek" =<< getArgs