From patchwork Fri Oct 29 09:30:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Foo Chuan Wei X-Patchwork-Id: 34132 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 0525027BBE3; Fri, 29 Oct 2021 11:42:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 33E0F27BBE1 for ; Fri, 29 Oct 2021 11:42:26 +0100 (BST) Received: from localhost ([::1]:48206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgPL7-0003Ht-5W for patchwork@mira.cbaines.net; Fri, 29 Oct 2021 06:42:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgOF0-0001HT-M1 for guix-patches@gnu.org; Fri, 29 Oct 2021 05:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgOF0-0003AP-CS for guix-patches@gnu.org; Fri, 29 Oct 2021 05:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgOEz-0006gJ-PS for guix-patches@gnu.org; Fri, 29 Oct 2021 05:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51477] [PATCH] gnu: Add nsxiv Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Oct 2021 09:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51477@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163549987325606 (code B ref -1); Fri, 29 Oct 2021 09:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2021 09:31:13 +0000 Received: from localhost ([127.0.0.1]:54001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgOED-0006ew-1H for submit@debbugs.gnu.org; Fri, 29 Oct 2021 05:31:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:41486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgOE9-0006el-07 for submit@debbugs.gnu.org; Fri, 29 Oct 2021 05:31:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgOE8-00007f-Nn for guix-patches@gnu.org; Fri, 29 Oct 2021 05:31:08 -0400 Received: from mail-oln040092253020.outbound.protection.outlook.com ([40.92.253.20]:11520 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgOE1-0002yq-MY for guix-patches@gnu.org; Fri, 29 Oct 2021 05:31:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=np9qm9oJziWPwluFQZre72gystdKi8HnkawGhZoJPQ8+yPktoxdRGQjhngNmNDll5jqJ3t7yYunhX3i6dCznJedC6TAAuEPIYRhzSzq12oXfuzkzrxO2suiPK9E853FubaqSM4a4oD7koL55AqunWnWc4xz1MxtbEFGjJ76A3ZXBTXTpjSqpaZ04ZChJ3Rvd1FzEoJo5IujLZn5D845m/fjBXJERQCXHUDD1tvFGkvoeUcqTV+eWHp3z7CShyD0XghY23GUR/yOeMVF51Vh5SiiepDIw4xuWXQB3zRQAoKbu+j1yugNFOxV9Z1lgoJA8S+Q4t5QN+bBNhpF5RRH4sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hbfwOQR7O0hD439DzMw7IeB6KWWuwsZ5ApK0pIYfQSA=; b=bkErnwrhmZvZyI5BXJ0JOMcAofxCv2crrI7jq8wEv4Xj5BrE2SyMzBzLybw+wfOYWFLJZtIgzwRp0xZVRRy7+XOMNCLoo33+Bdrgxqr9dqTKNRSvDHtOMUr/q+hieLVmAGW+NEo0rZRyRs8+ebSIjpZa4XFgAGIhgcdsqrHWQzZgjVMmoUkn++EAL7TuIzxvO195D2qIgUNuDer1gb3RKvvd/jFIjz8tDWcqUHtgPViuKf2xPbRjhKwtMxOu63RyVBC+V8P20oyi8sgRe7SDWe0v6GUNT87A1c8jwG1u6QVrLOZgOapwfeJTPxZngpc+M4JhqD2xBxXD6kGx8wFmaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hbfwOQR7O0hD439DzMw7IeB6KWWuwsZ5ApK0pIYfQSA=; b=EjSAP1wh0Qz8sXruutaexWJF3Oo4fxtoKMDP4CzoiVtXNu1IKJDMDpFLPu38zc2/mWpMCQdqXLlbbiacYKAE2m4z6Ra/cdOWS4G7kH2W9FEZ4AEiqHn03fswm/QcJi2Edn903L29e7HpHbRnjd1GPKhVfAM4TtI523CkQt6XX6lJD+2CJugvKAMeIAS3kNi7gmZ88lzjV9/FFwd2D2pS7PwW7Ue8acy7BPtZKe9PwDyoqs9hZcleMef7d+A4BwJu8fYmW3eBAy9ROUolQ15ZRR1SXw0yT6Q0O3TpfM5a6CkJYIG533WdoEOTVfB3UbcMV9lUJOhYKiAMQY4NK8DYUw== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PS2PR01MB2232.apcprd01.prod.exchangelabs.com (2603:1096:300:38::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Fri, 29 Oct 2021 09:30:56 +0000 Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015]) by PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015%6]) with mapi id 15.20.4628.020; Fri, 29 Oct 2021 09:30:56 +0000 Date: Fri, 29 Oct 2021 09:30:52 +0000 From: Foo Chuan Wei Message-ID: Mail-Followup-To: guix-patches@gnu.org Content-Disposition: inline X-TMN: [MBe2CcnPHwaCeiFYTYAAw/sFAVUfXe5o+hGd13zCvEI=] X-ClientProxiedBy: HK2PR02CA0197.apcprd02.prod.outlook.com (2603:1096:201:21::33) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211029093052.7trj5k2k2ek5hrlk@main> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from main (119.160.168.152) by HK2PR02CA0197.apcprd02.prod.outlook.com (2603:1096:201:21::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.13 via Frontend Transport; Fri, 29 Oct 2021 09:30:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78bbbafa-578a-4cbe-fbf7-08d99abecf32 X-MS-TrafficTypeDiagnostic: PS2PR01MB2232: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0DyDcmxPiz8Dtirs1hNrQavQZj5F1dm7ub+u/IMD4nZHtVeK3++nj+f9tLjEzr8OitfPITr1YD4p/4dJv5r6QuqnO87CJIP1f6HzHYBi8Y41eBF9kuFZJUfiTnQz2lJh+BMJ5gJ03gJYeQkrdY82uTSgCLwwg/c5NKVWHSiZB92UmcJ2WDnpOYqWcxacOeSe5kMFx7KJLu5/Pxy3sWLN14h4g3xUXGog3nEN6K+F7Mnqpa6KsWmxxHsessK7UDo13d3WGQpqgqWyMimxr2U4Wo3bhNNi1SjF7Gw74zmkcPeAnEzAiLH62d9AGnVToiKAyVVkitvBT2DuniXBeinWwGtqYvUK1vTrNGxCs0hElPX6W7Vlx/Dn9td6UDcG2WM5+balxECXk2RrRbWUhdkcQbp0vgocKwszIEMVCztq5iON/lr3p4GyT3v3JRvdO8isBArYYqqOzJqOAZcNxVokDEQpKEepD/YkCEoKPiGxR6kI43EvJ+sIw824m96avocBLjxHkHTLyoieRQkMlnlIknktXDSDOGqq5Wcm9IS/XTGPJIoxHGyR18sQAjG4m8OlT7BpfQPlEZGQx7cg/evdGw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lqK32j2V8wR7GgjWKD1USdgwl8hi9A9wnO/apYh9T8/ah4YWKLvCvJ3IujZc2FPm1EpkIQiCBdN+3ByvLAK1BFAVy0Gky2MYTm5NXX7RZpIuQ0CnwL8SYw4zmuv7dUfi/ZJB+Z10Ge5HROS0HQhtnEPYtYCHc/tyQtAs8ZbVGt32BJFrwnYwaNRZpCQ3UbLb7JgsUK4+vdOdJmzGlM+AzmU3wiOBL3UgqB3ahRBhie53IHg/6JQpe0GILvQwXsmNr9tGhD88hY2AfOBo2xD6Sv3Hp5DatABNSvfbJtDFB/8MQ1M425plB/uqWE9yUYCTvg7P15rYWuo6ceVlyFgEAsQPHcCLwG+CEh81dz3OVKr22Bq+c/drtUnDUrjTz7tc8Iy1NTg76yNoUUA9DaVOc+J02ewS1wcHicfxfb/lM4KStjbQQoykXOh33HoT+IhogCwbUUOYo5NzL6FFcYR3kN2NrLC9WHhMGO8qyyUirEzQtibk7sY0ubwbhtv0qe7rO47biC1OWZeC1WDN5ZlTBwoB6/06ZrgZhLPXt10dPZl1ZYkihU6ANJmJOraAq6u+oPvTpFsu+YI+QS+cVyeCz4KAHgqGug0b9oDaq9PE08KDi/xeo8R7/Cambn/8+NcR81zU5TOWBf6UZ6atvsBqKxy3/AqauarXQh4WSVhU55+W0S7wO3ePfbS2Qo/3v1eadD2S67bDuToews+OflOMJw== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 78bbbafa-578a-4cbe-fbf7-08d99abecf32 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2021 09:30:56.4502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS2PR01MB2232 Received-SPF: pass client-ip=40.92.253.20; envelope-from=chuanwei.foo@hotmail.com; helo=APC01-SG2-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/image-viewers.scm (nsxiv): New variable. --- gnu/packages/image-viewers.scm | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) base-commit: ad39268cdf075f4c4eeb87ed78ce46ca6f817675 diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 4f87b63ca1..1799642cbb 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2021 Foo Chuan Wei ;;; ;;; This file is part of GNU Guix. ;;; @@ -417,6 +418,60 @@ base should be kept small and clean to make it easy for you to dig into it and customize it for your needs.") (license license:gpl2+))) +(define-public nsxiv + (package + (name "nsxiv") + (version "27.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nsxiv/nsxiv") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1na7f0hpc9g04nm7991gzaqr5gkj08n2azx833hgxcm2w1pnn1bk")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no check target + #:make-flags + (list (string-append "PREFIX=" %output) + (string-append "CC=" ,(cc-for-target))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-after 'unpack 'fix-libXft-path + (lambda _ + ;; Xft.h #includes without ‘freetype2/’. The Makefile + ;; works around this by hard-coding /usr/include & $PREFIX. + (substitute* "Makefile" + (("-I/usr/include/freetype2 -I\\$\\(PREFIX\\)/include/freetype2") + (string-append "-I" (assoc-ref %build-inputs "freetype") + "/include/freetype2"))))) + (add-after 'install 'install-desktop-file + (lambda* (#:key outputs #:allow-other-keys) + (install-file "nsxiv.desktop" + (string-append (assoc-ref outputs "out") + "/share/applications")))) + (add-after 'install 'install-icons + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "-C" "icon" "install" make-flags)))))) + (inputs + `(("freetype" ,freetype) + ("giflib" ,giflib) + ("imlib2" ,imlib2) + ("libexif" ,libexif) + ("libx11" ,libx11) + ("libxft" ,libxft))) + (home-page "https://github.com/nsxiv/nsxiv") + (synopsis "Neo Simple X Image Viewer") + (description + "nsxiv is a fork of sxiv. Its primary goal is to provide the most basic +features required for fast image viewing. It has vi key bindings and works +nicely with tiling window managers. Its code base should be kept small an +clean to make it easy for you to dig into it and customize it for your needs.") + (license license:gpl2+))) + (define-public viewnior (package (name "viewnior")