From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eCdvGTQthGLrMQAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 01:18:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2HJRGDQthGKmJgEAG6o9tA (envelope-from ) for ; Wed, 18 May 2022 01:18:12 +0200 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 0A0DA204E4 for ; Wed, 18 May 2022 01:18:12 +0200 (CEST) Received: from localhost ([::1]:45798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nr6SA-0003LF-W8 for larch@yhetil.org; Tue, 17 May 2022 19:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr6S3-0003H6-6v for guix-patches@gnu.org; Tue, 17 May 2022 19:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nr6S2-000791-Un for guix-patches@gnu.org; Tue, 17 May 2022 19:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nr6S2-0000Yp-R4 for guix-patches@gnu.org; Tue, 17 May 2022 19:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55045] [PATCH v2 4/4] gnu: neovim: Use new style. Resent-From: Luis Henrique Gomes Higino Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 May 2022 23:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55045@debbugs.gnu.org Cc: Luis Henrique Gomes Higino Received: via spool by 55045-submit@debbugs.gnu.org id=B55045.16528294552098 (code B ref 55045); Tue, 17 May 2022 23:18:02 +0000 Received: (at 55045) by debbugs.gnu.org; 17 May 2022 23:17:35 +0000 Received: from localhost ([127.0.0.1]:58370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr6Ra-0000Xg-Gq for submit@debbugs.gnu.org; Tue, 17 May 2022 19:17:34 -0400 Received: from mail-oa1-f51.google.com ([209.85.160.51]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr6RN-0000Wr-Gt for 55045@debbugs.gnu.org; Tue, 17 May 2022 19:17:21 -0400 Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-f189b07f57so592502fac.1 for <55045@debbugs.gnu.org>; Tue, 17 May 2022 16:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RBxLmKmfAMj7GBIwidfBX7HjpSKd1SjlezzYUJMZ9AM=; b=ATVzMbETFkSpBrR97JCLXvayadfjR30vS0GQNEVZybwPYy+ZnGrQOT9JTPexEo+Rsw O20VDZm8K4GKfkfbopOXrJ3pgUVoaaRZ0hn6TqXZoTLkTUUCxB/XTWdhZYBJrLWVS0Rh ocUsUw/sK5zyhwLbLKffemw/1VuOXaboWRJtnBHL0ZVRw44qCqolGr+9T6IdYY7hwMX7 bE6oBlljFckT010448lDaK6k6J/Nq94r2dwhJh91qnIvtGifURKMO7Le3Behr1bbyaqJ 3OJlJwUWah7jP+7V+vNHUsfvLrNfxizAuYRg0jhDA+kdtSDqEYqllk5ZJ7n5dplICWv0 Fjkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RBxLmKmfAMj7GBIwidfBX7HjpSKd1SjlezzYUJMZ9AM=; b=KzVfX/ylMV3nMpARYa1X03sc/WaHlC0WXosgBFQn0epf7xqlK4IFshUp4mcS7On4fN BLxaZBNP3cwI6YZJUrtXKPonNmkFvGSw1j87kDngUExAo4/Rw5apbVAEJRqJEhxZYUaq QbkXjOB3eVuCE9EWhNZb3BfEuBPVu/SnONOBISTMzqj3jlwn1LP4kxzzX0SRrx2Luwl9 l48C+JVmIWeLiFrpg/6mqH7WxpiBEiefCV5AFuNW1GO8lpPel7vYC9oWeC+iu4UuGKHJ LmVQGew1vIOLGWPhXwPgretzD+nhoQI/ox/wgLxRXowapgioh7e3b4/QFRnqx+1rr4yQ HvWw== X-Gm-Message-State: AOAM532yZpKjStY/sFVBYDHu2eMf8WHbAnE350T779BHcEj7i7e7RqCf 2P/mOJ4DNf0UKSuwz3NDj1ck863zxyoPHvfy X-Google-Smtp-Source: ABdhPJxv6ruYd46iowdhmvM7q8DeR3bAZciRgWbu2V+SAkilDr23XCOae+IzAuCNy4ULP8IoLoNi7A== X-Received: by 2002:a05:6870:b025:b0:e6:283a:9553 with SMTP id y37-20020a056870b02500b000e6283a9553mr14001613oae.62.1652829435416; Tue, 17 May 2022 16:17:15 -0700 (PDT) Received: from localhost.localdomain ([2804:1b3:c200:fc7:399f:1d5:1b26:e154]) by smtp.gmail.com with ESMTPSA id r3-20020a4a83c3000000b0035eb4e5a6c2sm340976oog.24.2022.05.17.16.17.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 16:17:14 -0700 (PDT) From: Luis Henrique Gomes Higino Date: Tue, 17 May 2022 20:16:47 -0300 Message-Id: <20220517231647.18336-4-luishenriquegh2701@gmail.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220517231647.18336-1-luishenriquegh2701@gmail.com> References: <20220517231647.18336-1-luishenriquegh2701@gmail.com> 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652829492; 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=RBxLmKmfAMj7GBIwidfBX7HjpSKd1SjlezzYUJMZ9AM=; b=NOzpaZqLGp2on0N4pZsIwaNzMTL1m1EdINOSu9bkEKvT18tlfGdZXE46Y3snGJGYA18X+t N10m3ESY2jVNJlUMhIHhCKUYqHoIwKx1533zwYB0u6hJ1lu+Vgqkq10VMDnK4dBLlA5KRH HWxtZtQ5F5IEeIw+RYGyDxtM4lcd7nDLqCM07N6znWbR5Ch+0EE5A1KFFjf9nbZrHHjUuS L8SpNzxH1/SIjP1bzGw+ltyAbZqRxyJtXSZtnVwIhrnJKaLC0r5FFPD5jLfk2f3G+5dWvC HJSgIaOwbtTE/Tb9cPdzQUbh5/0v5zEzF/F6NaMGlp6uXMm7zIV3R29kYeu2+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652829492; a=rsa-sha256; cv=none; b=tfgBUDb5YSwZ6u02x086ytlFptSqucphbh0dSLvnD4R0UgiMpUPSDthVzM/sjTDCDJxaUQ pLUxiDnBiKEWCvuJu5xYl+AWKZ89i6lGiT9K0Ue/nHNDffL4ujnQjbYdR5tV9W6jXf5o69 tzEqoxmspUrlxULnl/4FoyrLNTc6++CP/dYKpmWi8iY0QlzPHuXoIpMNj1FZgLXbYIZTVJ wrtA9kTdbnXlW7yG9i+Jy7oFar2P6ZDgf/0+pB4LldMp8BPmlm5M1B3JaiuJTdrmQsv6xt 91dRJVOTg5OQGrruZfNgLsTqiygthS+OKhQd0eoZYXWCce3uT0eeBoa4ZDd3zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ATVzMbET; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 6.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ATVzMbET; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 0A0DA204E4 X-Spam-Score: 6.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1oXIlfmIz8wq * gnu/packages/vim.scm (neovim): Use new style. [source]: Rewrite using gexps. [arguments]: Rewrite using gexps. [inputs and native-inputs]: Remove input labels. [description]: Run `guix style`. --- gnu/packages/vim.scm | 153 ++++++++++++++++++++++--------------------- 1 file changed, 78 insertions(+), 75 deletions(-) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 21a22570ad..0dfaa45813 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -659,84 +659,86 @@ (define-public neovim (package (name "neovim") (version "0.7.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/neovim/neovim") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1m7xmry66pn27gvk7qj9di83xa1h7zjp4c6ygnf218pqhr08x06g")))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/neovim/neovim") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1m7xmry66pn27gvk7qj9di83xa1h7zjp4c6ygnf218pqhr08x06g")))) (build-system cmake-build-system) (arguments - `(#:modules ((srfi srfi-26) - (guix build cmake-build-system) - (guix build utils)) - #:configure-flags - (list ,@(if (member (if (%current-target-system) - (gnu-triplet->nix-system (%current-target-system)) - (%current-system)) - (package-supported-systems luajit)) - '() - '("-DPREFER_LUA:BOOL=YES"))) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'set-lua-paths - (lambda* (#:key inputs #:allow-other-keys) - (let* ((lua-version "5.1") - (lua-cpath-spec - (lambda (prefix) - (let ((path (string-append prefix "/lib/lua/" lua-version))) - (string-append path "/?.so;" path "/?/?.so")))) - (lua-path-spec - (lambda (prefix) - (let ((path (string-append prefix "/share/lua/" lua-version))) - (string-append path "/?.lua;" path "/?/?.lua")))) - (lua-inputs (map (cute assoc-ref inputs <>) - '("lua" - "lua-luv" - "lua-lpeg" - "lua-bitop" - "lua-libmpack")))) - (setenv "LUA_PATH" - (string-join (map lua-path-spec lua-inputs) ";")) - (setenv "LUA_CPATH" - (string-join (map lua-cpath-spec lua-inputs) ";")) - #t))) - (add-after 'unpack 'prevent-embedding-gcc-store-path - (lambda _ - ;; nvim remembers its build options, including the compiler with - ;; its complete path. This adds gcc to the closure of nvim, which - ;; doubles its size. We remove the refirence here. - (substitute* "cmake/GetCompileFlags.cmake" - (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")) - #t))))) - (inputs - `(("libuv" ,libuv-for-luv) - ("msgpack" ,msgpack) - ("libtermkey" ,libtermkey) - ("libvterm" ,libvterm) - ("unibilium" ,unibilium) - ("jemalloc" ,jemalloc) - ("lua" ,(if (member (if (%current-target-system) - (gnu-triplet->nix-system (%current-target-system)) - (%current-system)) - (package-supported-systems luajit)) - luajit - lua-5.1)) - ("lua-luv" ,lua5.1-luv) - ("lua-lpeg" ,lua5.1-lpeg) - ("lua-bitop" ,lua5.1-bitop) - ("lua-libmpack" ,lua5.1-libmpack) - ("tree-sitter" ,tree-sitter))) - (native-inputs - `(("pkg-config" ,pkg-config) - ("gettext" ,gettext-minimal) - ("gperf" ,gperf))) + (list #:modules + '((srfi srfi-26) (guix build cmake-build-system) + (guix build utils)) + #:configure-flags + #~(list #$@(if (member (if (%current-target-system) + (gnu-triplet->nix-system (%current-target-system)) + (%current-system)) + (package-supported-systems luajit)) + '() + '("-DPREFER_LUA:BOOL=YES"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-lua-paths + (lambda* _ + (let* ((lua-version "5.1") + (lua-cpath-spec (lambda (prefix) + (let ((path (string-append + prefix + "/lib/lua/" + lua-version))) + (string-append + path + "/?.so;" + path + "/?/?.so")))) + (lua-path-spec (lambda (prefix) + (let ((path (string-append prefix + "/share/lua/" + lua-version))) + (string-append path "/?.lua;" + path "/?/?.lua")))) + (lua-inputs (list (or #$(this-package-input "lua") + #$(this-package-input "luajit")) + #$lua5.1-luv + #$lua5.1-lpeg + #$lua5.1-bitop + #$lua5.1-libmpack))) + (setenv "LUA_PATH" + (string-join (map lua-path-spec lua-inputs) ";")) + (setenv "LUA_CPATH" + (string-join (map lua-cpath-spec lua-inputs) ";")) + #t))) + (add-after 'unpack 'prevent-embedding-gcc-store-path + (lambda _ + (substitute* "cmake/GetCompileFlags.cmake" + (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")) + #t))))) + (inputs (list libuv-for-luv + msgpack + libtermkey + libvterm + unibilium + jemalloc + (if (member (if (%current-target-system) + (gnu-triplet->nix-system (%current-target-system)) + (%current-system)) + (package-supported-systems luajit)) + luajit + lua-5.1) + lua5.1-luv + lua5.1-lpeg + lua5.1-bitop + lua5.1-libmpack + tree-sitter)) + (native-inputs (list pkg-config gettext-minimal gperf)) (home-page "https://neovim.io") (synopsis "Fork of vim focused on extensibility and agility") - (description "Neovim is a project that seeks to aggressively + (description + "Neovim is a project that seeks to aggressively refactor Vim in order to: @itemize @@ -744,7 +746,8 @@ (define-public neovim @item Split the work between multiple developers @item Enable advanced external UIs without modifications to the core @item Improve extensibility with a new plugin architecture -@end itemize\n") +@end itemize +") ;; Neovim is licensed under the terms of the Apache 2.0 license, ;; except for parts that were contributed under the Vim license. (license (list license:asl2.0 license:vim)))) -- 2.36.0