From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cLWMBzUB2GJ7iQAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 15:20:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sPC3BjUB2GL68wAAG6o9tA (envelope-from ) for ; Wed, 20 Jul 2022 15:20:53 +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 744FF17DFC for ; Wed, 20 Jul 2022 15:20:52 +0200 (CEST) Received: from localhost ([::1]:45320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE9dD-0007v7-IO for larch@yhetil.org; Wed, 20 Jul 2022 09:20:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE5P9-00038H-6q for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE5P8-0007Hv-Pa for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE5P8-0005XF-LU for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56657] [PATCH] gnu: ranger: Add dependency file Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56657 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56657@debbugs.gnu.org Cc: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165830697221233 (code B ref -1); Wed, 20 Jul 2022 08:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2022 08:49:32 +0000 Received: from localhost ([127.0.0.1]:55799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE5Od-0005WO-Ch for submit@debbugs.gnu.org; Wed, 20 Jul 2022 04:49:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:44194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE4fJ-0004KD-SO for submit@debbugs.gnu.org; Wed, 20 Jul 2022 04:02:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE4fI-000553-S3 for guix-patches@gnu.org; Wed, 20 Jul 2022 04:02:41 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE4fG-0008Vb-Si for guix-patches@gnu.org; Wed, 20 Jul 2022 04:02:40 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2A05540E2F; Wed, 20 Jul 2022 10:02:36 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id oklS-1p6n8UT; Wed, 20 Jul 2022 10:02:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1658304116; bh=KS3nN9fMb3zRltBY9dqE95Nnrmk18mapqbbCahGDS1M=; h=From:To:Cc:Subject:Date; b=H79cQPkJf2p/sA/QIEHyd6rpxQ1PQFjvCVG6lD9GsWW7YSwcovSRIttoHiw7gxFuq nG/yXX+CQi0YVIK9ntMmDZyPc6B/05qxRJRz67g4zx3QQ70R2Udj3jweZFjGgxGWxu 1KLll4f3irL6Hv4m62XQO68bSVC4RFii8vcB1R89BVATNsJZueuOBdSy4pPXozNWPP QXPf5elsXvhTFcN+fSz39ezp8+rUonvf7c79wc1gPyhILLMlvz22lHE6UbSnxq9v6m ahyLsGquGLTPHucBwAuVIJrX5v2Q3cBWKW26GJWlSaD8bIlv4nlK7YqGq/67A9ez5k 5Abul2eKhrVpg== Date: Wed, 20 Jul 2022 17:01:43 +0900 Message-Id: <20220720080143.18005-1-mcsinyx@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=mcsinyx@disroot.org; helo=knopi.disroot.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_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 20 Jul 2022 04:49:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 20 Jul 2022 09:16:48 -0400 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: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= From: guix-patches--- via 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=1658323252; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=EumCzWU40nAt/KOZiBDC6Qr3VuKTUSZowdiCio0qInY=; b=WdWyP5YjZYZJqKZcmEyZWqDnbSD2+duu8qU/CmacPrvfLK6n51Nxzf2De/FtsvXFV61QoC N0GPUoKScQ74FI25gpy3GVtLd4pHzsiaQUBWjrGmcVkKXz6IOaON3/OJz2sSpEMW6ZqFSa BpxFsK1H0kKukkLt3KgS7bhi5KoUY/SEv+hnzInuCzJisUmX9h3qlv19wu+xLCNShkwA/p Oo2HyCxq8IVagBYvCiZbO1H7KiQiG5wXPOerPyD7nPgQMYz781R7EAVVjP0dqv/T0adR+H Nkl01DlAOLBAQzkVTLLTpC8/fluGwu8J2Spaf50SWKLJdQxnSqorm80Q0j0aQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658323252; a=rsa-sha256; cv=none; b=kXoBYn77Z/cV7WL23PWMw2hKkcwAhjO11AWxUyjJeJ/jiRXKfDCZJwdKhlvppypfF9n85h XJdOF2tNcXgESJGyU1HjlorlCjfsqu12iz3dbiCT9dWsv4q0j7qIt4WNWaDC27Db8Nj2LV wZBZsrw5kusrKr49i+AqbdoUIEcON3Q+o+HOOFplibOuXwZ8l8Mml2EhV21wSPaLNnWtXz p7i4Z5T3FzJK/Bl+xUmfLiAJ/xDtqt3CBdwue3D1qgQLoOCLg3gG6uIX7B7h7yXL98/gkY 7B03on1R2ZQZabsu1+xI2q8kK4zB3zCWS7wM510sB2n99IV8pE0gCml/QeQoxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=H79cQPkJ; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=H79cQPkJ; dmarc=pass (policy=none) header.from=gnu.org; 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: 744FF17DFC X-Spam-Score: -1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: dMTCzDfe0upH While file is an optional dependency, without it file type determination and opening does not work out of the box. --- gnu/packages/disk.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 47b15e588f79..58bd3db3812c 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2021 Justin Veilleux ;;; Copyright © 2014, 2022 Ludovic Courtès ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -800,7 +801,7 @@ (define-public ranger "0lfjrpv3z4h0knd3v94fijrw2zjba51mrp3mjqx2c98wr428l26f")))) (build-system python-build-system) (inputs - (list w3m)) + (list file w3m)) (native-inputs (list which ;; For tests. @@ -815,11 +816,13 @@ (define-public ranger (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (ranger (string-append out "/bin/ranger")) + (file (assoc-ref inputs "file")) (w3m (assoc-ref inputs "w3m")) (w3mimgdisplay (string-append w3m "/libexec/w3m/w3mimgdisplay"))) (wrap-program ranger - `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay))) + `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)) + `("PATH" ":" prefix ,(list (string-append file "/bin")))) #t))) (replace 'check ;; The default check phase simply prints 'Ran 0 tests in 0.000s'. -- 2.37.0