Skip to content

Commit

Permalink
WIP Add monad-schedule overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz authored and turion committed Nov 8, 2024
1 parent d810657 commit 1f5864e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 11 deletions.
37 changes: 36 additions & 1 deletion flake.lock

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

25 changes: 15 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
monad-schedule.url = "github:turion/monad-schedule";
};

outputs = inputs:
Expand Down Expand Up @@ -43,7 +44,7 @@
lib.genAttrs pnames (pname: hfinal.callCabal2nix pname ./${pname} { });

# A nixpkgs overlay containing everything defined in this repo, for reuse in downstream projects
overlay = final: prev:
localOverlay = final: prev:
let
hps = hpsFor final;

Expand All @@ -52,13 +53,6 @@
temporaryHaskellOverrides = with prev.haskell.lib.compose; [
(hfinal: hprev: {
monad-bayes = markUnbroken hprev.monad-bayes;
monad-schedule = hprev.callHackageDirect
{
pkg = "monad-schedule";
ver = "0.2";
sha256 = "sha256-Z9lAxkvJDH9aQZd65bGOQI3EGH7oSAhK0nuBKULgiCE=";
}
{ };
time-domain = hprev.callHackageDirect
{
pkg = "time-domain";
Expand All @@ -74,9 +68,10 @@
time-domain = doJailbreak hprev.time-domain;
})
(hfinal: hprev: lib.optionalAttrs (lib.versionAtLeast hprev.ghc.version "9.10") {
indexed-traversable = doJailbreak hprev.indexed-traversable;
# primitive = doJailbreak hprev.primitive;
# Remove these as nixpkgs progresses!
finite-typelits = doJailbreak hprev.finite-typelits;
# indexed-traversable = doJailbreak hprev.indexed-traversable;
# primitive = doJailbreak hprev.primitive;
# ChasingBottoms = doJailbreak hprev.ChasingBottoms;

# th-abstraction = hprev.th-abstraction_0_7_0_0;
Expand All @@ -96,6 +91,10 @@
ver = "1.6.1";
sha256 = "sha256-//EOAwpEEQkdYF88U/bp0uybKleYHRmTWaKsxIZvCeQ=";
} { };

microstache = doJailbreak hprev.microstache;
gloss-rendering = doJailbreak hprev.gloss-rendering;
gloss = doJailbreak hprev.gloss;
})
];

Expand Down Expand Up @@ -155,6 +154,12 @@
};
};

overlay = lib.composeManyExtensions
[
inputs.monad-schedule.overlays.default
localOverlay
];

# Helper to build a flake output for all systems that are defined in nixpkgs
forAllPlatforms = f:
mapAttrs (system: pkgs: f system (pkgs.extend overlay)) inputs.nixpkgs.legacyPackages;
Expand Down

0 comments on commit 1f5864e

Please sign in to comment.