Skip to content

Commit

Permalink
Merge branch 'main' of github.com:codedownio/codedown-languages
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Nov 29, 2024
2 parents 3cbda55 + 285697f commit 588a63f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions modules/kernels/julia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
, python3
, callPackage
, fetchFromGitHub
, writeTextDir
, stdenv
, runCommand
, symlinkJoin

, julia
Expand Down
2 changes: 1 addition & 1 deletion tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

outputs = { self, nixpkgs, flake-utils }@inputs:
# flake-utils.lib.eachDefaultSystem (system:
flake-utils.lib.eachSystem ["x86_64-linux"] (system:
flake-utils.lib.eachSystem ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"] (system:
let
pkgs = import nixpkgs { inherit system; };
tests = pkgs.haskell.packages.ghc965.callPackage ./tests.nix {};
Expand Down
5 changes: 5 additions & 0 deletions tests/src/TestLib/JupyterRunnerContext.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE RankNTypes #-}

Expand Down Expand Up @@ -56,9 +57,13 @@ introduceJustBubblewrap :: (
HasBaseContext context, MonadIO m, MonadMask m, MonadUnliftIO m, MonadBaseControl IO m
) => SpecFree (LabelValue "maybeBubblewrap" (Maybe FilePath) :> context) m () -> SpecFree context m ()
introduceJustBubblewrap = introduceWith [i|bwrap|] maybeBubblewrap $ \action -> do
#ifdef darwin_HOST_OS
void $ action Nothing
#else
liftIO (findExecutable "bwrap") >>= \case
Nothing -> expectationFailure [i|The tests currently require bubblewrap to be present.|]
Just path -> void $ action (Just path)
#endif

introduceNothingBubblewrap :: (
HasBaseContext context, MonadIO m, MonadMask m, MonadUnliftIO m, MonadBaseControl IO m
Expand Down

0 comments on commit 588a63f

Please sign in to comment.