From fc426eceb2bb05030a667cb3313529bd5803a58f Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 5 Sep 2022 16:28:41 +0100 Subject: [PATCH] Add polysemy-plugin from git --- flake.lock | 18 ++++++++++++++++++ flake.nix | 4 ++++ overlay.nix | 2 ++ 3 files changed, 24 insertions(+) diff --git a/flake.lock b/flake.lock index 8ba6aace..20db56ab 100644 --- a/flake.lock +++ b/flake.lock @@ -199,6 +199,23 @@ "type": "github" } }, + "polysemy": { + "flake": false, + "locked": { + "lastModified": 1662391458, + "narHash": "sha256-ny1RDNdNbCehHEpBfEGBtsM+oWxmRJmNIlylx3iVwus=", + "owner": "locallycompact", + "repo": "polysemy", + "rev": "bd944ca000c1ca69602d4723e3859af431b9d0c4", + "type": "github" + }, + "original": { + "owner": "locallycompact", + "ref": "ghc-942", + "repo": "polysemy", + "type": "github" + } + }, "root": { "inputs": { "all-cabal-hashes": "all-cabal-hashes", @@ -211,6 +228,7 @@ "lint-utils": "lint-utils", "memory": "memory", "nixpkgs": "nixpkgs_2", + "polysemy": "polysemy", "servant": "servant", "tasty": "tasty", "tasty-hedgehog": "tasty-hedgehog" diff --git a/flake.nix b/flake.nix index 3b6b4d1b..ed9b021d 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,10 @@ flake = false; }; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + polysemy = { + url = "github:locallycompact/polysemy?ref=ghc-942"; + flake = false; + }; servant = { url = "github:TeofilC/servant?ref=ghc-9.4"; flake = false; diff --git a/overlay.nix b/overlay.nix index fabcf185..2d0d76c1 100644 --- a/overlay.nix +++ b/overlay.nix @@ -184,6 +184,8 @@ final: prev: with pkgs.haskell.lib; { polysemy-path = doJailbreak (prev.callHackage "polysemy-path" "0.2.1.0" { }); + polysemy-plugin = dontCheck (doJailbreak (prev.callCabal2nix "polysemy-plugin" (inputs.polysemy + /polysemy-plugin) { })); + polysemy-several = prev.callHackage "polysemy-several" "0.1.1.0" { }; polysemy-time = dontCheck (prev.callHackage "polysemy-time" "0.5.1.0" { }); -- GitLab