From 87e61720f0e13c0ddac4e6ef3feb15c5fa60e79b Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 12:00:44 +0000
Subject: [PATCH] cache: init at 0.1.3.0

---
 manifest.dhall |  1 +
 overlay.nix    |  2 ++
 pkgs/cache.nix | 38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 pkgs/cache.nix

diff --git a/manifest.dhall b/manifest.dhall
index f78f2601..2fcb9f15 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -112,6 +112,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         "https://github.com/NixOS/cabal2nix"
         (None Text)
         (Some "cabal2nix")
+    , callHackage "cache" "0.1.3.0"
     , callHackage "case-insensitive" "1.2.1.0"
     , callHackage "cassava" "0.5.3.0"
     , callHackage "cassava-megaparsec" "2.0.4"
diff --git a/overlay.nix b/overlay.nix
index 340fd123..23f7d738 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -99,6 +99,8 @@ final: prev: with pkgs.haskell.lib; {
 
   cabal2nix = prev.callPackage (./pkgs/cabal2nix.nix) { };
 
+  cache = prev.callPackage (./pkgs/cache.nix) { };
+
   case-insensitive = prev.callPackage (./pkgs/case-insensitive.nix) { };
 
   cassava = prev.callPackage (./pkgs/cassava.nix) { };
diff --git a/pkgs/cache.nix b/pkgs/cache.nix
new file mode 100644
index 00000000..e420006b
--- /dev/null
+++ b/pkgs/cache.nix
@@ -0,0 +1,38 @@
+{ mkDerivation
+, base
+, clock
+, hashable
+, hspec
+, lib
+, stm
+, transformers
+, unordered-containers
+}:
+mkDerivation {
+  pname = "cache";
+  version = "0.1.3.0";
+  sha256 = "42e9d9f040fab2fd5fc1095a901d6348de73342b1d14254bdaf6ca3d4f11e534";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    clock
+    hashable
+    stm
+    transformers
+    unordered-containers
+  ];
+  testHaskellDepends = [ base clock hspec stm transformers ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/hverr/haskell-cache#readme";
+  description = "An in-memory key/value store with expiration support";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab