From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NYp-00038I-S0 for guix-patches@gnu.org; Tue, 02 Oct 2018 12:30:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NYn-0001u3-Dr for guix-patches@gnu.org; Tue, 02 Oct 2018 12:30:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7NYn-0001tK-2q for guix-patches@gnu.org; Tue, 02 Oct 2018 12:30:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7NYm-0004Fv-Sr for guix-patches@gnu.org; Tue, 02 Oct 2018 12:30:08 -0400 Subject: [bug#32908] [PATCH 05/24] gnu: Add ghc-atomic-write. Resent-Message-ID: From: Ricardo Wurmus Date: Tue, 2 Oct 2018 18:28:53 +0200 Message-ID: <20181002162912.5037-5-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20181002162912.5037-1-ricardo.wurmus@mdc-berlin.de> References: <20181002162912.5037-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32908@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/haskell.scm (ghc-atomic-write): New variable. --- gnu/packages/haskell.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index c040965e9..c1815c60d 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -10691,6 +10691,41 @@ documents, amongst others.") backend for the Charts library.") (license license:bsd-3))) +(define-public ghc-atomic-write + (package + (name "ghc-atomic-write") + (version "0.2.0.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/atomic-write/atomic-write-" + version + ".tar.gz")) + (sha256 + (base32 + "1iaq0hprxcv0sl1sgwcgmm87zraf738va1bciwnx2jkk3k1v9iyv")))) + (build-system haskell-build-system) + (inputs + `(("ghc-temporary" ,ghc-temporary) + ("ghc-unix-compat" ,ghc-unix-compat) + ("ghc-text" ,ghc-text))) + (native-inputs + `(("ghc-temporary" ,ghc-temporary) + ("ghc-unix-compat" ,ghc-unix-compat) + ("ghc-text" ,ghc-text) + ("ghc-hspec" ,ghc-hspec) + ("hspec-discover" ,hspec-discover))) + (home-page "https://github.com/stackbuilders/atomic-write") + (synopsis "Atomically write to a file") + (description + "Atomically write to a file on POSIX-compliant systems while preserving +permissions. @code{mv} is an atomic operation. This makes it simple to write +to a file atomically just by using the @code{mv} operation. However, this +will destroy the permissions on the original file. This library preserves +permissions while atomically writing to a file.") + (license license:expat))) + (define-public ghc-weigh (package (name "ghc-weigh") -- 2.19.0