diff --git a/horizon.dhall b/horizon.dhall index bede56a037cfd5ecc1984fe775aad27acda402f8..aa400d2e8688cb88bf5a8ce9986849a9e68d908f 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -108,6 +108,7 @@ let otherLibraries = "1a6bd1f67d1463d7243ab4c34fc4f7d84ee0554a" (None H.Subdir) , H.callHackage "algebraic-graphs" "0.7" + , H.callHackage "async-timer" "0.2.0.0" , H.callHackage "base58-bytestring" "0.1.0" , H.callHackage "base64-bytestring-type" "1.0.1" , callCardanoBase "base-deriving-via" "base-deriving-via" diff --git a/overlay.nix b/overlay.nix index 246dc7a75ca1f61479fc06d1dbc3863447378290..88db58c116875e150ac593d791d41a331a103c8d 100644 --- a/overlay.nix +++ b/overlay.nix @@ -13,6 +13,8 @@ final: prev: with pkgs.haskell.lib; { algebraic-graphs = final.callPackage (./pkgs/algebraic-graphs.nix) { }; + async-timer = final.callPackage (./pkgs/async-timer.nix) { }; + base-deriving-via = final.callPackage (./pkgs/base-deriving-via.nix) { }; base-prelude = final.callPackage (./pkgs/base-prelude.nix) { }; diff --git a/pkgs/async-timer.nix b/pkgs/async-timer.nix new file mode 100644 index 0000000000000000000000000000000000000000..6bae66d0f718c1e42acd027712968accf68097e4 --- /dev/null +++ b/pkgs/async-timer.nix @@ -0,0 +1,46 @@ +{ mkDerivation +, async +, base +, containers +, criterion +, lib +, safe-exceptions +, tasty +, tasty-hunit +, unliftio +, unliftio-core +}: +mkDerivation { + pname = "async-timer"; + version = "0.2.0.0"; + sha256 = "0632bfc4c141aa47c461747b3edb59f76ef5523a66ac03be0f32868a5e04cee0"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + async + base + safe-exceptions + unliftio + unliftio-core + ]; + testHaskellDepends = [ + async + base + containers + criterion + tasty + tasty-hunit + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/mtesseract/async-timer#readme"; + description = "Provides API for timer based execution of IO actions"; + license = lib.licenses.bsd3; + broken = false; +}