From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lttRLkIoUWFMDwAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 04:11:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0LVkKUIoUWFpUgAAbx9fmQ (envelope-from ) for ; Mon, 27 Sep 2021 02:11:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8688AC742 for ; Mon, 27 Sep 2021 04:11:14 +0200 (CEST) Received: from localhost ([::1]:33922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUg6r-0003gs-Bc for larch@yhetil.org; Sun, 26 Sep 2021 22:11:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUg6g-0003g3-19 for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUg6f-0000W8-QB for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUg6f-0002As-KH for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50835] [PATCH 1/8] gnu: Add ghc-cache. References: <20210927020943.GC2089@singpolyma-beefy.lan> In-Reply-To: <20210927020943.GC2089@singpolyma-beefy.lan> Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 02:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50835@debbugs.gnu.org Cc: Stephen Paul Weber Received: via spool by 50835-submit@debbugs.gnu.org id=B50835.16327086398269 (code B ref 50835); Mon, 27 Sep 2021 02:11:01 +0000 Received: (at 50835) by debbugs.gnu.org; 27 Sep 2021 02:10:39 +0000 Received: from localhost ([127.0.0.1]:39190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6J-000293-46 for submit@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:39 -0400 Received: from singpolyma.net ([192.99.233.116]:47551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6H-00028R-8r for 50835@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:37 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id E500E486168B; Mon, 27 Sep 2021 02:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632708636; bh=2KnoU8xO8U7+WXlVZ9l2HHLJ+dYH15FixXn1MA2nTIU=; h=From:To:Cc:Subject:Date:From; b=ItmmXXwhQgzBCs5FpvFCx284GSJJ/iCcWCU5771cfOiH0skkh8vuO+SRoDtXLiTHl TCFYyaNU1aDP31N4PUm2zZBdZsxK+qSTMkGOjTkW7tVf9E6AqSiKSdgU7wxQoht3+V AI+UZij4C9CEM43EQ9GDE623ffx7bDgMA1r65Xko= From: Stephen Paul Weber Date: Sun, 26 Sep 2021 21:10:26 -0500 Message-Id: <20210927021033.17700-1-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632708674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rHQwJeGaZtFBq9fYImUSkm1hBdofnqV2+nLwD5aeEEU=; b=Mg7e941WK/lreZk51MkKcKk6mrDEGgvO52jRVDOUzMaKB627JC7nPHZVkJZ3CXEIQsckbl 7oopDkvW+YsJ+PfxQeGg5oPaK0QAYTZFOnZCGoLefEyHpX3DVIHTsOWFMxnvwggr9b8cyh e/AFGq+FlViIB3id/xpo3eBjiC5ZeVeqAGV+R5S5zaI3hcDrdUfWeuypAY7Mmj0QmIjfCn 8mW5tODYthtOI99H7yWF7dyquxFTmRncbbp9mmKBF+1zoxozGaO2xn7d+W8KifzwwqfB+K 9u3g81o9PwaVUd2H7d+uZ8CL8dRQZj2krIuelYzQAFKOKza+2ZGi+7cFD6lTwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632708674; a=rsa-sha256; cv=none; b=bH4zkjpNL6rKn5naJThuKq78qr8GuqKQeB2JTuZTRx6Pd1zl0ABeL/tP+Jc9p28Y0Tp2Jw aw4wo71iDruLr8P7Z0Nr6POSkyJZAm1SwCtjEH7Otdk9uicfiC3cPAR2uDT4argJXajSPb 46msFzmYdtXOEYRJ23BsPzRfhWrGzL3SvpPwJo4Xkj0dGW79BEH1hdUPkRuqsX8XKXj/Wc jh55dnOzjCY6Va2f30DDdhESPtSmf+cuORoA3mO2RIKN7lWMBVHUB9txicYZwJUbND+aKi +13AHbY5pjNw2iFfP9W5Bdic33UdXAVxN/7DKWWVWEXFjHCh/E2A90bRDC/BcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=ItmmXXwh; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=ItmmXXwh; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8688AC742 X-Spam-Score: 3.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: ETq0r1L2lglb * gnu/packages/haskell-xyz.scm (ghc-cache): New variable. --- gnu/packages/haskell-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index f421458e15..f5ae156d35 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -15712,3 +15712,32 @@ Zstandard compression algorithm, a fast lossless compression algorithm targeting real-time compression scenarios at zlib-level and better compression ratios.") (license license:bsd-3))) + +(define-public ghc-cache + (package + (name "ghc-cache") + (version "0.1.3.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/cache/cache-" + version + ".tar.gz")) + (sha256 + (base32 "0d75257kvjpnv95ja50x5cs77pj8ccfr0nh9q5gzvcps83qdksa2")))) + (build-system haskell-build-system) + (inputs + `(("ghc-clock" ,ghc-clock) + ("ghc-hashable" ,ghc-hashable) + ("ghc-unordered-containers" ,ghc-unordered-containers))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("hspec-discover" ,hspec-discover))) + (home-page "https://github.com/hverr/haskell-cache#readme") + (synopsis "In-memory key/value store with expiration support") + (description + "An in-memory key/value store with expiration support, similar to +patrickmn/go-cache for Go. The cache is a shared mutable HashMap implemented +using STM and with support for expiration times.") + (license license:bsd-3))) -- 2.20.1