From patchwork Mon Jan 21 07:46:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gabriel Hondet X-Patchwork-Id: 773 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 0431316A47; Mon, 21 Jan 2019 07:48:10 +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=ham 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 7751416A40 for ; Mon, 21 Jan 2019 07:48:09 +0000 (GMT) Received: from localhost ([127.0.0.1]:49667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glUJU-000324-VY for patchwork@mira.cbaines.net; Mon, 21 Jan 2019 02:48:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glUJP-0002zz-Un for guix-patches@gnu.org; Mon, 21 Jan 2019 02:48:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glUJO-0002hG-Tt for guix-patches@gnu.org; Mon, 21 Jan 2019 02:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glUJO-0002h1-Pd for guix-patches@gnu.org; Mon, 21 Jan 2019 02:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glUJO-0003JK-Ca for guix-patches@gnu.org; Mon, 21 Jan 2019 02:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34137] [PATCH] gnu: Add ghc-libmp. Resent-From: Gabriel Hondet Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Jan 2019 07:48:02 +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: Timothy Sample Received: via spool by 34137-submit@debbugs.gnu.org id=B34137.154805682412655 (code B ref 34137); Mon, 21 Jan 2019 07:48:02 +0000 Received: (at 34137) by debbugs.gnu.org; 21 Jan 2019 07:47:04 +0000 Received: from localhost ([127.0.0.1]:39365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glUIO-0003Hi-VH for submit@debbugs.gnu.org; Mon, 21 Jan 2019 02:47:04 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:39968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glUIM-0003HQ-4A for 34137@debbugs.gnu.org; Mon, 21 Jan 2019 02:46:59 -0500 Received: by mail-wr1-f53.google.com with SMTP id p4so22050665wrt.7 for <34137@debbugs.gnu.org>; Sun, 20 Jan 2019 23:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=OnMxqbgJyc/GQgBQidVLfY4B9Z2JCYwQZfPam0c6LuE=; b=VKQuJVwrKJRbQ7R5bjcjZS6PunRy+qFjbHxKq1KJz5wq+IQ2YNFrkrohIxqM5orysq xiFYx3WevoVp8vuxMLVus+JQAwM7vN8RK6I/Jwjh4M+uOiIUalH83vHpO4Zk825deVOG fUZP2GXG3qVT0XGsfqWSTFwDepwOPbTxwkZkmOs01dvzanHTSig4IYcRVbM2ySFCrK9/ q3NP8byIfRZrJcfPBOSG678tI2YyyXZdUMks46L2spWfqynJgHtWrf0glD7ld17pa3DL aysIC7jCNsy+d1zjqiI7o9ZowCmv5/PRPOUS6WgZZJ3HCvHXtl6kNZQcgz48yasBmvx1 6xMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=OnMxqbgJyc/GQgBQidVLfY4B9Z2JCYwQZfPam0c6LuE=; b=Y++nfqMphzdmQD8VxMb41sNNfJ1jjZrVbEYANLAHnASC9yPufjqUhYzf2iL1w2eGdF 0oAeopsxg+uxQegllt4WCILU1/jnAPO8L/og3gGk/bAaKpIyCCxoIkIRei2ejv2wjdUy FCNirBo1JSsxmI+xckC2N6RmGgMz5zFogzmP+cgeVMEJGsBaK1+qNmgnRXa+1rFnaWvT wuQ/l027M0TpBpJBw6UM7W88Y9lu/gPWTGYN1Iaw3q1vpxmJ0K19WRUcbKJJapbhnXiY DLb9TRnZMpGjLWZuD3csjN2gTPgJCt8oMztXc+9FS52R7aZ2MC7c4CzjRFiq1Xi5sXQZ asjA== X-Gm-Message-State: AJcUukdKC3NEJCoXwEF9BHnxNbDA1G/c2eHCz9OX3W8Dzr0ggkO/F6Pn sdGjtiPAbQgKi9QjCDELVekLmEQK X-Google-Smtp-Source: ALg8bN7H13vOnhn+m8RH4sy7Bo3V2tE2yBl0vYPo8p8fT2oh97FTLwc02RXjtQUEq9fuiyRVWrQdAA== X-Received: by 2002:a5d:480d:: with SMTP id l13mr28341519wrq.175.1548056811922; Sun, 20 Jan 2019 23:46:51 -0800 (PST) Received: from glht-aurore.gmail.com ([217.109.134.89]) by smtp.gmail.com with ESMTPSA id c13sm101366973wrb.38.2019.01.20.23.46.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jan 2019 23:46:51 -0800 (PST) References: <878szgv0tw.fsf@gmail.com> <87ef978fco.fsf@ngyro.com> User-agent: mu4e 1.0; emacs 26.1 From: Gabriel Hondet In-reply-to: <87ef978fco.fsf@ngyro.com> Date: Mon, 21 Jan 2019 08:46:50 +0100 Message-ID: <874la2v4et.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: , Cc: 34137@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Timothy, On Sun 20 Jan 2019 at 17:26 Timothy Sample wrote: > You should be able to remove the “ghc-mtl” input from the MPD package > without any issue. Indeed and it works even better, so here is the new patch: * gnu/packages/mpd.scm (ghc-libmpd): New variable. --- gnu/packages/mpd.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 3fe5d06f4..df4f64470 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) @@ -51,6 +53,8 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages haskell) + #:use-module (gnu packages haskell-check) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages sqlite) #:use-module (gnu packages video) @@ -360,3 +364,34 @@ 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-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))) + (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)))