Skip to content

GHC 8.10 on nixos-unstable #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixpkgs
Submodule nixpkgs updated 1507 files
2 changes: 1 addition & 1 deletion nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ if builtins.getEnv "STATIC_HASKELL_NIX_CI_NIXPKGS_UNSTABLE_BUILD" == "1"
if builtins.pathExists ./nixpkgs/pkgs
then import ./nixpkgs {}
# Pinned nixpkgs version; should be kept up-to-date with our submodule.
else import (fetchTarball https://github.com/nh2/nixpkgs/archive/8d536f36256d30d8fa47b24caafb1af6405889f3.tar.gz) {}
else import (fetchTarball https://github.com/NixOS/nixpkgs/archive/d00b5a5fa6fe8bdf7005abb06c46ae0245aec8b5.tar.gz) {}
2 changes: 1 addition & 1 deletion static-stack2nix-builder-example/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let
if builtins.pathExists ../.in-static-haskell-nix
then toString ../. # for the case that we're in static-haskell-nix itself, so that CI always builds the latest version.
# Update this hash to use a different `static-haskell-nix` version:
else fetchTarball https://github.com/nh2/static-haskell-nix/archive/39f2f38ed042e84d8b6627a236c1815f48023d3c.tar.gz;
else fetchTarball https://github.com/nh2/static-haskell-nix/archive/57147ba740363712f589d24dfa005c8c7f6d1056.tar.gz;

# Pin nixpkgs version
# By default to the one `static-haskell-nix` provides, but you may also give
Expand Down
20 changes: 5 additions & 15 deletions survey/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
let
cython-disable-tests-overlay = final: previous: {
python27 = previous.python27.override {
packageOverrides = self: super: {
cython = super.cython.overridePythonAttrs (old: rec {
# TODO Remove once Cython tests are no longer flaky. See
# https://github.com/nh2/static-haskell-nix/issues/6#issuecomment-420452838
# https://github.com/cython/cython/issues/2602
doCheck = false;
});
};
};
};
in

{
Expand All @@ -31,7 +19,6 @@ in
# Note that we must NOT use something like `import normalPkgs.path {}`.
# It is bad because it removes previous overlays.
pkgs ? (normalPkgs.appendOverlays [
cython-disable-tests-overlay
])."${approach}",

# When changing this, also change the default version of Cabal declared below
Expand Down Expand Up @@ -126,7 +113,7 @@ let
stackagePackages =
let
stackageInfoPath = pkgs.path + "/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml";
pythonWithYaml = pkgs.python2Packages.python.withPackages (pkgs: [pkgs.pyyaml]);
pythonWithYaml = normalPkgs.python3Packages.python.withPackages (pkgs: [pkgs.pyyaml]);
stackage-packages-file = normalPkgs.runCommand "stackage-packages" {} ''
${pythonWithYaml}/bin/python -c 'import yaml, json; x = yaml.load(open("${stackageInfoPath}")); print(json.dumps([line.split(" ")[0] for line in x["default-package-overrides"]]))' > $out
'';
Expand Down Expand Up @@ -1126,7 +1113,7 @@ let
# Test suite tries to connect to dbus, can't work in sandbox.
credential-store = dontCheck super.credential-store;

# Test suite calls all kinds of shell unilities, can't work in sandbox.
# Test suite calls all kinds of shell utilities, can't work in sandbox.
dotenv = dontCheck super.dotenv;

# Test suite fails time-dependently:
Expand Down Expand Up @@ -1343,6 +1330,9 @@ let
])
"--libs nettle sdl2 SDL2_image xcursor libpng libjpeg libtiff-4 libwebp";

# Test hangs for 10 hours on CI machine.
midi = dontCheck super.midi;

# With optimisations disabled, some tests of its test suite don't
# finish within the 25 seconds timeout.
skylighting-core =
Expand Down