From patchwork Sat Jan 19 20:34:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Hondet X-Patchwork-Id: 767 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BD80216A01; Sat, 19 Jan 2019 20:40:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E8D77169FE for ; Sat, 19 Jan 2019 20:40:09 +0000 (GMT) Received: from localhost ([127.0.0.1]:59612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkxPV-0002vX-BF for patchwork@mira.cbaines.net; Sat, 19 Jan 2019 15:40:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkxPQ-0002tP-At for guix-patches@gnu.org; Sat, 19 Jan 2019 15:40:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkxPO-0001jC-CR for guix-patches@gnu.org; Sat, 19 Jan 2019 15:40:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkxPO-0001iZ-6Y for guix-patches@gnu.org; Sat, 19 Jan 2019 15:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gkxPO-0007M1-0Q for guix-patches@gnu.org; Sat, 19 Jan 2019 15:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34137] [PATCH 1/2] gnu: Add ghc-mtl. Resent-From: Gabriel Hondet Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Jan 2019 20:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34137 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34137@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154793039428249 (code B ref -1); Sat, 19 Jan 2019 20:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jan 2019 20:39:54 +0000 Received: from localhost ([127.0.0.1]:38069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkxPG-0007LZ-I2 for submit@debbugs.gnu.org; Sat, 19 Jan 2019 15:39:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkxPE-0007LK-NP for submit@debbugs.gnu.org; Sat, 19 Jan 2019 15:39:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:42871) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkxP9-0001QL-9x for submit@debbugs.gnu.org; Sat, 19 Jan 2019 15:39:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkxP8-0002o3-7F for guix-patches@gnu.org; Sat, 19 Jan 2019 15:39:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkxP6-0001L2-4g for guix-patches@gnu.org; Sat, 19 Jan 2019 15:39:46 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:36895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkxP5-0001DW-E9 for guix-patches@gnu.org; Sat, 19 Jan 2019 15:39:43 -0500 Received: by mail-wr1-x435.google.com with SMTP id s12so19025946wrt.4 for ; Sat, 19 Jan 2019 12:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=3Tl15w7gwczBeNuwpw0ssbvl1GVgLRM9+ILbnKaFAqY=; b=I9nAqPrufHxVzMBRyM7Q1LwdBKAkI4fIYWREv7eWf82rue0GDQHIKbTj9IE9r3miEV J1ICP5PbsyEQVOgiReHUMb3GtSzki6yyROWhPqdvz74lcEFmilSQNRmDCPfgH2u+3K21 Q8aFBAUiohk1ueNdcPTANiL5VQpwtLnPiFneyTs3EaoDDe9OOJ/JndtAW/cvx7ewVSMB zlMtABhCsTQavwyrAs/V932dG4eSNu3wKmjHqgfki7kEhJpi5jlDTSAewqzA7cxScwM6 OLLIg4sBfJbRxcqmCsHli85JAeCUMQZ28Lom4lCd/UltBLOiPJzrvX/Cnpg4cHPeHBN1 jGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=3Tl15w7gwczBeNuwpw0ssbvl1GVgLRM9+ILbnKaFAqY=; b=ietUVKpYOHH43ubPS9IcrX7ot/5OVXUjq11Cj9ZBm5BAQAJH5ayuPBNk2acPMPNuV1 mkTBT+Y1X1LAviJuY+t4xdGLTZzrhIqQZY0mY6UG4rYrsbYLoMbaUzWHZqomkr4yXuaC 8Osmq8nZNCBNOVtj0Z9/z80B3bXmIX9d69siwdJIamljTaI3ulquxf6+DKg2ywbHBIbG nmHKqmya6DFVvSJlSG7SJzNwjiLp43Kfe0vdBeDgetAaigoepNS+21NsCtj5a5koE0Qn Dr8ZTKKra8goiiLm5Ggk3eHVsZ+Qt0ORmkGcNj+Ko5Fx/WLvx49jttW8GIY1BMRTdsF5 qpcA== X-Gm-Message-State: AJcUukfYhCUoR5YLbtzVpgRIJKy23CNvGVBOC63xEEy/lfMz7A6h9eA3 ad9AAVASHCNA63bFwdW4RdqXmbsv X-Google-Smtp-Source: ALg8bN7G/zwUe4w04tloefZ1LjI2H2oiV+TPSj4Bb31pRs1lhFAbxTZ63YpNTrhlW2XDVDJSVUP8VA== X-Received: by 2002:adf:e983:: with SMTP id h3mr20838411wrm.232.1547930381185; Sat, 19 Jan 2019 12:39:41 -0800 (PST) Received: from glht-aurore.gmail.com ([217.109.134.89]) by smtp.gmail.com with ESMTPSA id 10sm58156343wmy.40.2019.01.19.12.39.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jan 2019 12:39:40 -0800 (PST) User-agent: mu4e 1.0; emacs 26.1 From: Gabriel Hondet Date: Sat, 19 Jan 2019 21:34:52 +0100 Message-ID: <878szgv0tw.fsf@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/haskell.scm (ghc-mtl): New variable. --- gnu/packages/haskell.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index a3ce2a3e4..97616d451 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -11405,4 +11405,29 @@ from a shell. The @code{tldr} pages are a community effort to simplify the man pages with practical examples.") (license license:bsd-3))) +(define-public ghc-mtl + (package + (name "ghc-mtl") + (version "1.2.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/ghc-mtl/ghc-mtl-" + version + ".tar.gz")) + (sha256 + (base32 + "0h6r6gip9nsjlsq88wj105hhqliy7ac2dmmndsfzbjz07b03cklk")))) + (build-system haskell-build-system) + (inputs + `(("ghc-exceptions" ,ghc-exceptions) + ("ghc-extensible-exceptions" ,ghc-extensible-exceptions))) + (home-page "https://hub.darcs.net/jcpetruzza/ghc-mtl") + (synopsis + "Mtl compatible version of the Ghc-Api monads and monad-transformers") + (description "Provides an @code{mtl} compatible version of the @code{GhcT} +monad-transformer defined in the @code{GHC-API} since version 6.10.1.") + (license license:bsd-3))) + ;;; haskell.scm ends here From patchwork Sat Jan 19 20:36:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gabriel Hondet X-Patchwork-Id: 768 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EC27316A01; Sat, 19 Jan 2019 20:53:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0640C169FF for ; Sat, 19 Jan 2019 20:53:13 +0000 (GMT) Received: from localhost ([127.0.0.1]:59734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkxc8-0004pF-DW for patchwork@mira.cbaines.net; Sat, 19 Jan 2019 15:53:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkxbz-0004o4-EJ for guix-patches@gnu.org; Sat, 19 Jan 2019 15:53:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkxby-00086O-DY for guix-patches@gnu.org; Sat, 19 Jan 2019 15:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkxby-00086C-7p for guix-patches@gnu.org; Sat, 19 Jan 2019 15:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gkxby-0007h2-1X for guix-patches@gnu.org; Sat, 19 Jan 2019 15:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34137] [PATCH 2/2] gnu: Add ghc-libmpd. References: <878szgv0tw.fsf@gmail.com> In-Reply-To: <878szgv0tw.fsf@gmail.com> Resent-From: Gabriel Hondet Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Jan 2019 20:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34137 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34137@debbugs.gnu.org Received: via spool by 34137-submit@debbugs.gnu.org id=B34137.154793112929505 (code B ref 34137); Sat, 19 Jan 2019 20:53:01 +0000 Received: (at 34137) by debbugs.gnu.org; 19 Jan 2019 20:52:09 +0000 Received: from localhost ([127.0.0.1]:38080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkxb3-0007fl-W0 for submit@debbugs.gnu.org; Sat, 19 Jan 2019 15:52:09 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:34888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkxb1-0007fE-LO for 34137@debbugs.gnu.org; Sat, 19 Jan 2019 15:52:04 -0500 Received: by mail-wr1-f45.google.com with SMTP id 96so19063639wrb.2 for <34137@debbugs.gnu.org>; Sat, 19 Jan 2019 12:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=Aaz7uimUYXhB13DB71FZK2nOF1y+KDKKDK+9B2heEcA=; b=sctpxB+DtoFfWF7eWjRplAJEUkV163tPmBfhtmNvf2OrxpykogaGAhSAm94p5ZQCNh Z3gNw1V71KWXcmvFj5mfRsGF1K5wFR0ynU+lEK+5igmOz479JFDN2gR81MzE3fGJdoJ9 dpPWrI4PForR4l6wXzws+QAI4G91nC3/+jI6Q6lgHb46EJihEksPHiJqTG2V2XPthYML hjnfmvWIso9WTJCVKAVkouT8NCsGj8C/KzIWKE2RNuWj9N67plpv31gtjCB/TmgXJ40X xx2TbJLmMiqPwMJBBvH5Lc25r6RSQ+0Pbe6vWVFalcpCkrW2oF7Pds/fsJ1BkpBbNVV3 EvFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=Aaz7uimUYXhB13DB71FZK2nOF1y+KDKKDK+9B2heEcA=; b=LXdUr3BKSM+MTHkWiTzr8VAh6nhwa8Y7+hCrO8yj+wz/xGG6pr3/2nIk2XyBSpB5Ng w6QYzjputApz/tpGs967c1/BrjXS11WoQwUQgnvZfYZqjhL0F5fUwkEz+rIvGjN+0Y/w Bo49O0kgLK1enLZWwx10fpt/01jKeR/pdf1iLL8rilE72vAHa3Ad6lDd6aGJUdQwhGXr 2pg+r5W6ah6c1KY3tcZo8qoATfNT9/qp6qkgAbmxNsYEY6T1b9OVGSjwMAOSRaCktno1 bgtZ6/h3ZI2AH6rwoKdN1LVWP/QmI0CTnQr36zyJZBWKFzypGjlDgLyd5jicP8fbc6HI l8Pg== X-Gm-Message-State: AJcUukeAgDj/dkgNVV32rkHH8gH6lvpdKpeQktZ/ctel5g2zmRGWN+LT l3Cuavh4ZT0WGpxuqMIXXdtREb/I X-Google-Smtp-Source: ALg8bN4ElU668k++rFwS6lR5g/0kyHsvzjgqlEtzZYZAe+Wm/m1uztQgw+bFgEnEuqATIT4zSs06Ng== X-Received: by 2002:a5d:4dc8:: with SMTP id f8mr22256165wru.45.1547931117455; Sat, 19 Jan 2019 12:51:57 -0800 (PST) Received: from glht-aurore.gmail.com ([217.109.134.89]) by smtp.gmail.com with ESMTPSA id e17sm69824886wrs.79.2019.01.19.12.51.56 for <34137@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jan 2019 12:51:56 -0800 (PST) User-agent: mu4e 1.0; emacs 26.1 From: Gabriel Hondet Date: Sat, 19 Jan 2019 21:36:18 +0100 Message-ID: <877ef0v09g.fsf@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/mpd.scm (ghc-libmpd): New variable. --- gnu/packages/mpd.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 3fe5d06f4..34fc9f6b7 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2015 Paul van der Walt ;;; Copyright © 2016, 2018 Leo Famulari ;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2019 Gabriel Hondet ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,6 +32,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (guix build-system haskell) #:use-module (gnu packages avahi) #:use-module (gnu packages boost) #:use-module (gnu packages gcc) @@ -47,6 +49,8 @@ #:use-module (gnu packages linux) #:use-module (gnu packages mp3) #:use-module (gnu packages ncurses) + #:use-module (gnu packages haskell) + #:use-module (gnu packages haskell-check) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -360,3 +364,39 @@ Daemon (MPD). It supports playlists, multiple profiles (connecting to different MPD servers, search and multimedia key support.") (home-page "https://www.nongnu.org/sonata/") (license license:gpl3+))) + +(define-public ghc-libmpd + (package + (name "ghc-libmpd") + (version "0.9.0.9") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/libmpd/libmpd-" + version + ".tar.gz")) + (sha256 + (base32 + "1931m23iqb4wddpdidm4ph746zpaw41kkjzmb074j7yyfpk7x1jv")))) + (build-system haskell-build-system) + (inputs + `(("ghc-attoparsec" ,ghc-attoparsec) + ("ghc-mtl" ,ghc-mtl) + ("ghc-old-locale" ,ghc-old-locale) + ("ghc-text" ,ghc-text) + ("ghc-data-default-class" ,ghc-data-default-class) + ("ghc-network" ,ghc-network) + ("ghc-utf8-string" ,ghc-utf8-string))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-hspec" ,ghc-hspec) + ("hspec-discover" ,hspec-discover))) + (arguments + '(#:tests? #f)) ;song parsing test fail + (home-page + "http://github.com/vimus/libmpd-haskell#readme") + (synopsis "MPD client library") + (description + "A client library for MPD, the Music Player Daemon.") + (license license:expat)))