From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6NDNKDRKjWZY+wAA62LTzQ:P1 (envelope-from ) for ; Tue, 09 Jul 2024 14:33:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6NDNKDRKjWZY+wAA62LTzQ (envelope-from ) for ; Tue, 09 Jul 2024 16:33:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=L79S5k5D; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720535604; 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=qTHoZDrl2Llyw+JBCdeYIYq1R82KKs2HfMX7WjYPTWQ=; b=lVFLyAX/jhNAHvfV+6KOr+5ld+Iccv3hnR3fc5wzqDhBTjaoStRQnMYoooaEoFtQk7kqGk 0e5jFWQjhxulfGECGirBlgjGGo8v5qrDjt8vWelHKJzj7+djUzsr5EU4cfiBHXmC/3hoxg /8FOP7CZii3YvZguhGq0Tl3vS2vSNiXNnYHjQt1Y2gOnxdG/UX49VkwrqXvBvQhGBbfZMC Y1KQnIm/mZvUMAdd7GfaHE+Rc4J+DvrhPnRiW4cRRziVWQbh/3bOoxm0yd4D+jPOn0Ou/B lpETj0+sPZ70CYcBxvkuLDFJLGSDtJhuP/pD4Kubk0iY80SmNYof24rpYi6Bcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=L79S5k5D; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720535604; a=rsa-sha256; cv=none; b=nIkK1GoVCzJs7ePH/c0iJ+yvZzUnrq6fjdXz0l6QHFiX5BzyCndRkYnqtWtEOlIyY4w7Pe vm9Oe9AhxIw8rxxUQlgT6NbcTRtwBs1w/fY30fcQxWIYDGA1c6ebxL+tMfUAMSp2+ekdMq HqxPVQ/U+cZbKY9n7ziNmSpa5SSmm0bJgrvUTPLqOJc6yJupqNvkPbXMoyfbpBfl/I2lmU YMiEmO8z7lIungaERRzbwFt3FCJBa+kI+20/3VLUsjWSJJ6HELijG6iJl6X5f4wdp2esr0 MWVBFLJD+0LvZftR5pZnftg8Is4LT7nd+BkWYzIP3QvBHSKPHXuShVgvabM4hg== 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 17EF05553B for ; Tue, 9 Jul 2024 16:33:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBiK-0007cX-Bx; Tue, 09 Jul 2024 10:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBiE-0007S3-JI for guix-patches@gnu.org; Tue, 09 Jul 2024 10:20:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRBiE-0001hP-0g for guix-patches@gnu.org; Tue, 09 Jul 2024 10:20:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRBiJ-0001Zb-FY for guix-patches@gnu.org; Tue, 09 Jul 2024 10:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44518] [PATCH v2 25/25] gnu: Add matterhorn. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Jul 2024 14:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44518 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 71938@debbugs.gnu.org Cc: rekado@elephly.net, Romain GARBAGE , 44518@debbugs.gnu.org Received: via spool by 44518-submit@debbugs.gnu.org id=B44518.17205348165944 (code B ref 44518); Tue, 09 Jul 2024 14:21:03 +0000 Received: (at 44518) by debbugs.gnu.org; 9 Jul 2024 14:20:16 +0000 Received: from localhost ([127.0.0.1]:53848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBhX-0001Xi-Pf for submit@debbugs.gnu.org; Tue, 09 Jul 2024 10:20:16 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBX2-00010v-KT; Tue, 09 Jul 2024 10:09:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qTHoZDrl2Llyw+JBCdeYIYq1R82KKs2HfMX7WjYPTWQ=; b=L79S5k5DLBZhl9vCOofwI6VpV/vhj0n3q81ytgejy4TKYy3npFFuxqM4 WjgduXIJsyixa2dJgUaI2hOYKSRscKZZTpt90drcT/rHQDD5HWRY9Fl+1 R6bWlAVKpVRTVFAnqFjMkc84SATAKbMslQWJPrvgErnZnDMw158p9dm0P g=; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="91739228" Received: from lfbn-bay-1-62-70.w83-193.abo.wanadoo.fr (HELO guix-A102.home) ([83.193.153.70]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:08:45 +0200 From: Romain GARBAGE Date: Tue, 9 Jul 2024 15:54:09 +0200 Message-ID: <20240709140812.6183-26-romain.garbage@inria.fr> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240709140812.6183-1-romain.garbage@inria.fr> References: <20240709140812.6183-1-romain.garbage@inria.fr> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 17EF05553B X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.80 X-Spam-Score: -3.80 X-TUID: BTpsIsAmMeiE * gnu/packages/haskell-apps.scm (matterhorn): New variable. Change-Id: I8f83b39fdc5f94251239129814068000fb492336 --- gnu/packages/haskell-apps.scm | 92 +++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index 3fce4f803c..2fcb1a8c56 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -37,6 +37,7 @@ (define-module (gnu packages haskell-apps) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) @@ -682,6 +683,97 @@ (define-public kmonad Wayland, and Linux console environments alike.") (license license:expat)))) +(define-public matterhorn + (package + (name "matterhorn") + (version "90000.0.0") + (source + (origin + ;; use git repo instead of hackage URL because the hackage tarball + ;; doesn't contain the sample config file + (method git-fetch) + (uri (git-reference + (url "https://github.com/matterhorn-chat/matterhorn") + (commit version))) + (sha256 + (base32 "08ng5axranilvfl9j3v0mjgpg76kzacrqj4c8x6pblpc3yxx02i5")))) + (build-system haskell-build-system) + (properties '((upstream-name . "matterhorn"))) + (inputs (list ghc-aeson + ghc-aspell-pipe + ghc-async + ghc-base-compat + ghc-bimap + ghc-brick + ghc-brick-skylighting + ghc-commonmark + ghc-commonmark-extensions + ghc-config-ini + ghc-crypton-connection + ghc-data-clist + ghc-gitrev + ghc-hashable + ghc-hclip + ghc-mattermost-api + ghc-microlens-platform + ghc-network-uri + ghc-random + ghc-semigroups + ghc-skylighting-core + ghc-split + ghc-stm-delay + ghc-strict + ghc-temporary + ghc-text-zipper + ghc-timezone-olson + ghc-timezone-series + ghc-unix-compat-7 + ghc-unordered-containers + ghc-utf8-string + ghc-uuid + ghc-vector + ghc-vty-6 + ghc-vty-crossplatform + ghc-word-wrap + ghc-xdg-basedir)) + (native-inputs (list ghc-checkers + ghc-mattermost-api-qc + ghc-tasty + ghc-tasty-hunit + ghc-tasty-quickcheck + ghc-unique)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-requirements + (lambda _ + (for-each (lambda (dep) + (substitute* "matterhorn.cabal" + (((string-append "(,\\s" dep + "\\s*>=\\s[0-9].[0-9]).*") + all pat) + pat))) + (list "random" + "data-clist" + "semigroups" + "word-wrap" + "unix-compat" + "skylighting-core" + "checkers" + "vty" + "vty-crossplatform" + "brick")))) + (add-after 'install 'install-config-file + (lambda _ + (install-file "./docs/sample-config.ini" + (string-append #$output "/share/doc/" #$name "-" #$version "/etc/"))))))) + (home-page "http://hackage.haskell.org/package/matterhorn") + (synopsis "Terminal client for the Mattermost chat system") + (description + "This is a terminal client for the Mattermost chat system. Please see the README +for a list of features and information on getting started.") + (license license:bsd-3))) + (define-public nixfmt (package (name "nixfmt") -- 2.45.1