From patchwork Mon Sep 27 13:54:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksandr Vityazev X-Patchwork-Id: 33359 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 EFD4927BBE3; Mon, 27 Sep 2021 15:07:33 +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, 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 9FC8627BBE1 for ; Mon, 27 Sep 2021 15:07:33 +0100 (BST) Received: from localhost ([::1]:55882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUrI4-0003We-ID for patchwork@mira.cbaines.net; Mon, 27 Sep 2021 10:07:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUr5z-0005bD-KG for guix-patches@gnu.org; Mon, 27 Sep 2021 09:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUr5y-0001vK-P9 for guix-patches@gnu.org; Mon, 27 Sep 2021 09:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUr5y-000419-Oh for guix-patches@gnu.org; Mon, 27 Sep 2021 09:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50847] [PATCH 1/5] gnu: Add iodash. References: <87wnn2ruq9.fsf@posteo.org> In-Reply-To: <87wnn2ruq9.fsf@posteo.org> Resent-From: Alexandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50847 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50847@debbugs.gnu.org Received: via spool by 50847-submit@debbugs.gnu.org id=B50847.163275087915356 (code B ref 50847); Mon, 27 Sep 2021 13:55:02 +0000 Received: (at 50847) by debbugs.gnu.org; 27 Sep 2021 13:54:39 +0000 Received: from localhost ([127.0.0.1]:40134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUr5X-0003zV-DU for submit@debbugs.gnu.org; Mon, 27 Sep 2021 09:54:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUr5W-0003zG-07 for 50847@debbugs.gnu.org; Mon, 27 Sep 2021 09:54:34 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 405FD240101 for <50847@debbugs.gnu.org>; Mon, 27 Sep 2021 15:54:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1632750868; bh=IpVxA8SOkwYjg8wgbGXANyq9wNymSgbUFizc9HlqKzA=; h=From:To:Subject:Date:From; b=YRqGnPRcBBhHQ7yiGuXGWQDgJErl+gcBmts2PUIGcGUCRtExEytuYQ6l8l7XXW/C/ tgPnKLYRBQQ8QUz0Y51EVeo7lH0ZAZSUcddd5w2MoQRkdXbHtVtWqdBcXHBSHmsMSc NAW1vSMAFO7LZmDIVwH/CNn8trDrCJgqoPdlk2c39+dTs1MP9nLmwfs9m1GWegaDHj HVf9pX7uVaENjEnc9N39E93gHW/AZdPbEfB2NhS66NGQI8+F5zRgjhuNqeqY4VqdRd 8fHoAdShNMzEPe5Gm8bId7MZpTOzibsNPkosfOJDVNUsvNm1aTWG1LMdwK/CKvFMkU /lFgWCLhbDRxw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HJ3z73PJZz6tnK for <50847@debbugs.gnu.org>; Mon, 27 Sep 2021 15:54:27 +0200 (CEST) From: Alexandr Vityazev Date: Mon, 27 Sep 2021 13:54:33 +0000 Message-ID: <87v92mruna.fsf@posteo.org> MIME-Version: 1.0 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/cpp.scm (iodash): New variable. --- gnu/packages/cpp.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 4af71ba93a..e3b73b1612 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 Alexandr Vityazev ;;; ;;; This file is part of GNU Guix. ;;; @@ -956,6 +957,49 @@ provides a number of utilities to make coding with expected cleaner.") (home-page "https://tl.tartanllama.xyz/") (license license:cc0))) +(define-public iodash + ;; there is no cpp_modules in the release version + (let ((commit "acefbb532c48108a29beb3633d4ea0c0dffb0a7b") + (revision "0") + ;; ydotool requires this version + (version "0.1.0")) + (package + (name "iodash") + (version (git-version version revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/YukiWorkshop/IODash") + (commit commit) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1syfzi4g79pxj6zxajh800j8zsi3nqj5q49swykc6mn2143nkh05")))) + (build-system cmake-build-system) + (arguments + ;; No tests + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (inc (string-append out "/include")) + (lib (string-append out "/lib"))) + (install-file "libIODash.a" lib) + (with-directory-excursion "../source" + (install-file "IODash.hpp" inc) + (install-file + "cpp_modules/portable-endian/portable-endian.h" inc) + (copy-recursively "IODash" + (string-append inc "/IODash"))))))))) + (home-page "https://github.com/YukiWorkshop/IODash") + (synopsis "Lightweight C++ I/O library for POSIX operation systems") + (description "@code{IODash} is a C++ library for POSIX operation systems.") + (license license:expat)))) + (define-public magic-enum (package (name "magic-enum")