From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WEYSIkXjIWDdRwAA0tVLHw (envelope-from ) for ; Tue, 09 Feb 2021 01:20:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8JDUHUXjIWDOYgAAbx9fmQ (envelope-from ) for ; Tue, 09 Feb 2021 01:20:05 +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 E88FC9403E8 for ; Tue, 9 Feb 2021 01:20:04 +0000 (UTC) Received: from localhost ([::1]:35154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9HhD-00025K-SM for larch@yhetil.org; Mon, 08 Feb 2021 20:20:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9HdM-0007iW-CZ for guix-patches@gnu.org; Mon, 08 Feb 2021 20:16:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9HdJ-0004ga-SC for guix-patches@gnu.org; Mon, 08 Feb 2021 20:16:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9HdJ-0007zS-Ng for guix-patches@gnu.org; Mon, 08 Feb 2021 20:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46392] [PATCH] gnu: Add nixfmt. Resent-From: EuAndreh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Feb 2021 01:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46392 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46392@debbugs.gnu.org Cc: EuAndreh X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161283334530689 (code B ref -1); Tue, 09 Feb 2021 01:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2021 01:15:45 +0000 Received: from localhost ([127.0.0.1]:52214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Hd3-0007yv-BW for submit@debbugs.gnu.org; Mon, 08 Feb 2021 20:15:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:58718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Hd0-0007yn-JD for submit@debbugs.gnu.org; Mon, 08 Feb 2021 20:15:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Hd0-0007Vw-EI for guix-patches@gnu.org; Mon, 08 Feb 2021 20:15:42 -0500 Received: from box.euandre.org ([46.101.160.115]:56983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Hct-0004PS-1s for guix-patches@gnu.org; Mon, 08 Feb 2021 20:15:42 -0500 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id 32794FC3D9; Mon, 8 Feb 2021 22:14:56 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1612833298; bh=mdi1lEXHne/oQNf3cvLRDXK9mAce+0MmDA/JDy5w738=; h=From:To:Cc:Subject:Date:From; b=VyVcAHO/HFxG6LcxtvoMW0Ec1f1kiOg7rO3UW0r9AIhh57VH0j5Fk0s6LStXP3dN8 79lwBqkTtDqIzaz3UohHI2vwXmjPuO5VjYc1g+Xy3aylTBdNB6c22zus0cQJpbM7Du CXAD3EwYIvdHUBk+auyM4yL0gryicvBBEuT1c8zOxL2oifoG9btbUKTGlj6gzmeAiK o0o+MkiF0apRdjCKZNu1kAvGbgnEyOEDqjClIu4bR+Arcd9EiuBrLgLm3sVY1IZ58y xiRca13D6rtDLmIChqsT/IrVDIyDuPzaXAd0lVuV17sBlCuEzTksJCLmz6t4MBajFW O+sCEe9VoMemQ== Date: Mon, 8 Feb 2021 22:14:52 -0300 Message-Id: <20210209011452.6841-1-eu@euandre.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=46.101.160.115; envelope-from=eu@euandre.org; helo=box.euandre.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: EuAndreh X-ACL-Warn: , EuAndreh via Guix-patches From: EuAndreh via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=mail header.b="VyVcAHO/"; dmarc=pass (policy=none) header.from=gnu.org; 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: E88FC9403E8 X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: BUsvx5Djhsyr * gnu/packages/haskell-xyz.scm (nixfmt): New variable. --- A quick note: the Hackage importer worked suprisingly well. It was even able to properly define the synopsis and description fields! gnu/packages/haskell-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index d6c50ade71..aff3303cb3 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Carlo Holl ;;; Copyright © 2020 Christopher Lemmer Webber +;;; Copyright © 2021 EuAndreh ;;; ;;; This file is part of GNU Guix. ;;; @@ -8693,6 +8694,36 @@ making this package a full replacement for the original newtype package, and an alternative to newtype-th.") (license license:bsd-3))) +(define-public nixfmt + (package + (name "nixfmt") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/nixfmt/nixfmt-" + version + ".tar.gz")) + (sha256 + (base32 + "1ispgl8rc2scr6v8bb6sks7px856jf61x74zj2iyddrn5qamkb3n")))) + (build-system haskell-build-system) + (inputs + `(("ghc-megaparsec" ,ghc-megaparsec) + ("ghc-parser-combinators" ,ghc-parser-combinators) + ("ghc-cmdargs" ,ghc-cmdargs) + ("ghc-safe-exceptions" ,ghc-safe-exceptions))) + (arguments + `(#:cabal-revision + ("1" "1hsj0jh6siph3afd9c2wii09sffl48rzqv653n4clpd8qy0rn48d"))) + (home-page "https://github.com/serokell/nixfmt") + (synopsis "An opinionated formatter for Nix") + (description + "A formatter for Nix that ensures consistent and clear formatting +by forgetting all existing formatting during parsing.") + (license license:mpl2.0))) + (define-public ghc-non-negative (package (name "ghc-non-negative") -- 2.30.0