From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp1 ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id qokUGw9jD2Ft4QAAgWs5BA
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 08 Aug 2021 06:52:31 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1 with LMTPS
	id 0JD3FQ9jD2EvbAAAbx9fmQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 08 Aug 2021 04:52:31 +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 D2D80C237
	for <larch@yhetil.org>; Sun,  8 Aug 2021 06:52:30 +0200 (CEST)
Received: from localhost ([::1]:37048 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	id 1mCaVi-0005cf-7M
	for larch@yhetil.org; Sun, 08 Aug 2021 00:34:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44666)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1mCaVe-0005cV-Rf
 for guix-patches@gnu.org; Sun, 08 Aug 2021 00:34:02 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:41925)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1mCaVe-00082D-LB
 for guix-patches@gnu.org; Sun, 08 Aug 2021 00:34:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1mCaVe-0004QQ-EV
 for guix-patches@gnu.org; Sun, 08 Aug 2021 00:34:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#49939] [PATCH 1/2] gnu: Add ghc-filelock.
Resent-From: Matthew James Kraai <kraai@ftbfs.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Sun, 08 Aug 2021 04:34:02 +0000
Resent-Message-ID: <handler.49939.B.162839718516893@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 49939
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 49939@debbugs.gnu.org
Cc: Matthew James Kraai <kraai@ftbfs.org>
X-Debbugs-Original-To: guix-patches@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.162839718516893
 (code B ref -1); Sun, 08 Aug 2021 04:34:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2021 04:33:05 +0000
Received: from localhost ([127.0.0.1]:53470 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mCaUi-0004OP-UK
 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 00:33:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:52778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kraai@ftbfs.org>) id 1mCaUd-0004Nx-JV
 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 00:33:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44522)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kraai@ftbfs.org>) id 1mCaUd-0005Zn-CK
 for guix-patches@gnu.org; Sun, 08 Aug 2021 00:32:59 -0400
Received: from mail.ftbfs.org ([52.8.68.13]:59774 helo=aws.ftbfs.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kraai@ftbfs.org>) id 1mCaUb-00076p-J2
 for guix-patches@gnu.org; Sun, 08 Aug 2021 00:32:59 -0400
Received: from ip68-228-72-85.oc.oc.cox.net ([68.228.72.85]
 helo=localhost.localdomain)
 by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <kraai@ftbfs.org>)
 id 1mCaUZ-0000sP-5p; Sun, 08 Aug 2021 04:32:55 +0000
From: Matthew James Kraai <kraai@ftbfs.org>
Date: Sat,  7 Aug 2021 21:32:47 -0700
Message-Id: <20210808043247.28114-1-kraai@ftbfs.org>
X-Mailer: git-send-email 2.32.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=52.8.68.13; envelope-from=kraai@ftbfs.org;
 helo=aws.ftbfs.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1628398350;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:resent-cc:
	 resent-from:resent-sender:resent-message-id:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post;
	bh=4BM0Y4DOztr9WWrSKjMt/+nnt08bz9PhipZ4UC3Vp/U=;
	b=dQnN/hamfKz6XJJNVNv8JTxX54gmyJ8bns1RBHeV5lWwNVfUtI0M2srVOGenwkZpwBXixl
	+fNH0g+EYHsnL6udxBV6OkBT1esWsqFOXVXEuWy5mwXC7ssw7jYjukQT+2t/oxlgFl4pXU
	oFBDal/+kyrcvsAkkEFxWuBMe3rmf7kUzfK0TCHi/ElefPMZ2eMWbzG8Wp4gRKao4iWmLv
	/Jx9M4GbZ9DR8vUk2pAalIubb4JUsuBuOfi6Bj2WWwUVh7vTeRuMDT0iUXAHBaEFR6VVII
	qbo6L6gwnMQRLvCQvgMS1GxOcW9yRwiKbtoKnDkhg5DRC6goaa/yN7g1Bvkzlw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628398350; a=rsa-sha256; cv=none;
	b=lVMoecvPryY4SoG6+CxC4nBJscE4SdBmMxMbcnp5Tk4oXqc1inN33juKj+XLeRjfNq9k5D
	MhvIEt883SdPTfzL6R5izDuz8JcgWqcqOiXXMycXLvQTk1Y8AI0HT1FarwSAkDqm9L9kXp
	TIMG0QD8wX2G8OumTDXkAZUUo5Qsh976MoHA3q/7Pmi5eXe9TxXLIpwpd4juccdAUr82Cn
	c61am4QPsJJD2ExZlS6s/A6zNZl16iH3ydjDFvPBpW7HWG8Nlu0VXdQxZZPGTEHKEAQPhA
	ZZXMwSA0Gsht1tJdL4I5OLaETKh4I436RwZ06J56OtxFEC39EC8pz4oZdAXuJQ==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=none;
	dmarc=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: 4.89
Authentication-Results: aspmx1.migadu.com;
	dkim=none;
	dmarc=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: D2D80C237
X-Spam-Score: 4.89
X-Migadu-Scanner: scn1.migadu.com
X-TUID: gxYja3Odb1TK

* gnu/packages/haskell-xyz.scm (ghc-filelock): New variable.
---
 gnu/packages/haskell-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index bb59476795..4393b77348 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -28,6 +28,7 @@
 ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
 ;;; Copyright © 2020 Carlo Holl <carloholl@gmail.com>
 ;;; Copyright © 2020 Christopher Lemmer Webber <cwebber@dustycloud.org>
+;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4478,6 +4479,31 @@ the files in a directory, and turn them into @code{(path, bytestring)} pairs
 embedded in your Haskell code.")
     (license license:bsd-3)))
 
+(define-public ghc-filelock
+  (package
+    (name "ghc-filelock")
+    (version "0.1.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/filelock/filelock-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "189n4pvq7f4d235smg2iqs2m5rqmnjdxflifq0mnb2qdbc4jjznr"))))
+    (build-system haskell-build-system)
+    (native-inputs `(("ghc-async" ,ghc-async)))
+    (home-page
+     "http://github.com/takano-akio/filelock")
+    (synopsis
+     "Portable interface to file locking (flock / LockFileEx)")
+    (description
+     "This package provides a Haskell interface to Windows and Unix file
+locking functionalities.")
+    (license license:public-domain)))
+
 (define-public ghc-filemanip
   (package
     (name "ghc-filemanip")
-- 
2.32.0