Skip to content

Commit

Permalink
add 9.10, drop 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Jul 7, 2024
1 parent 9c15ed8 commit e925646
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Higher-order, low-boilerplate free monads.";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/54ce5abce7e1531376455c7b32a195329c2587f0";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

Expand All @@ -13,12 +13,12 @@
hsPkgs = nixpkgs: compiler: import ./nix/overlay.nix { inherit system nixpkgs compiler; };

ghcs = {
"810" = hsPkgs nixpkgs "ghc810";
"90" = hsPkgs nixpkgs "ghc90";
"92" = hsPkgs nixpkgs "ghc92";
"94" = hsPkgs nixpkgs "ghc94";
"96" = hsPkgs nixpkgs "ghc96";
"98" = hsPkgs nixpkgs "ghc98";
"910" = hsPkgs nixpkgs "ghc910";
};

default = "96";
Expand All @@ -39,7 +39,7 @@
packages = p: [p.polysemy p.polysemy-plugin];
buildInputs = with ghc; [
cabal-install
] ++ nixpkgs.lib.optionals (name != "98" && name != "810") [
] ++ nixpkgs.lib.optionals (name != "910" && name != "98") [
(ghc.pkgs.haskell.lib.dontCheck ghcid)
haskell-language-server
];
Expand Down
53 changes: 33 additions & 20 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,53 @@
}:
let
pkgs = import nixpkgs { inherit system; };
hlib = pkgs.haskell.lib;

overrides = self: super:
let
filter = pkgs.nix-gitignore.gitignoreSourcePure [./source-filter];

c2n = name: src: pkgs.haskell.lib.disableLibraryProfiling (self.callCabal2nix name (filter src) {});
c2n = name: src: self.callCabal2nix name (filter src) {};

in {
polysemy = c2n "polysemy" ../.;
polysemy-plugin = c2n "polysemy-plugin" ../polysemy-plugin;
} // pkgs.lib.optionalAttrs (compiler == "ghc96") {
type-errors = pkgs.haskell.lib.doJailbreak super.type-errors;
} // pkgs.lib.optionalAttrs (compiler == "ghc98") {
some = pkgs.haskell.lib.doJailbreak super.some;
type-errors = pkgs.haskell.lib.doJailbreak super.type-errors;
th-abstraction = self.callHackageDirect {
pkg = "th-abstraction";
ver = "0.7.0.0";
sha256 = "sha256-YNCvJ9C8PsOTT+B4NoRT6kA2bOFk4F6ygm8hzWMH+1I=";
} {};
tagged = self.callHackageDirect {
pkg = "tagged";
ver = "0.8.8";
sha256 = "1m2bcf0sr1z28gnl2k8xibcsv80kd35816c9c7ji045jbxg27xd9";
} // pkgs.lib.optionalAttrs (compiler == "ghc910") {

cabal-doctest = self.callHackageDirect {
pkg = "cabal-doctest";
ver = "1.0.10";
sha256 = "sha256-h6lGtI8czHKiYyoSrrMKrpitidhH5MBfczl9JkJ7Y0E=";
} {};
hspec = super.hspec_2_11_7;
hspec-core = super.hspec-core_2_11_7;
hspec-meta = super.hspec-meta_2_11_7;
hspec-discover = super.hspec-discover_2_11_7;
doctest = self.callHackageDirect {

call-stack = hlib.dontCheck super.call-stack;

doctest = hlib.dontCheck (self.callHackageDirect {
pkg = "doctest";
ver = "0.22.2";
sha256 = "193vrmxcnn9fxn7bc6y7jg8qwr13z9a26qqn0c294mn67il18cqn";
rev = {
revision = "1";
sha256 = "sha256-bZcyn5y1PS27VOv+j4EgIQWRd2aizi5EKs15BoL+NvE=";
};
} {});

ghc-tcplugins-extra = self.callHackageDirect {
pkg = "ghc-tcplugins-extra";
ver = "0.4.6";
sha256 = "sha256-dFCNSkiKP5pr8Kx/p5Cb+WJ4cp/xcQA2Y5JgPwQ0CzQ=";
} {};

os-string = null;

primitive = hlib.dontCheck super.primitive_0_9_0_0;

th-abstraction = self.callHackageDirect {
pkg = "th-abstraction";
ver = "0.7.0.0";
sha256 = "sha256-YNCvJ9C8PsOTT+B4NoRT6kA2bOFk4F6ygm8hzWMH+1I=";
} {};

};
in
pkgs.haskell.packages.${compiler}.override { inherit overrides; } // { inherit pkgs; }

0 comments on commit e925646

Please sign in to comment.