GNU bug report logs - #50847
[PATCH 0/5] Add ydotool

Previous Next

Package: guix-patches;

Reported by: Alexandr Vityazev <avityazev <at> posteo.org>

Date: Mon, 27 Sep 2021 13:53:02 UTC

Severity: normal

Tags: patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 50847 <at> debbugs.gnu.org (full text, mbox):

From: Alexandr Vityazev <avityazev <at> posteo.org>
To: 50847 <at> debbugs.gnu.org
Subject: [PATCH 1/5] gnu: Add iodash.
Date: Mon, 27 Sep 2021 13:54:33 +0000
* 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 <brettg <at> gnu.org>
 ;;; Copyright © 2020 Milkey Mouse <milkeymouse <at> meme.institute>
 ;;; Copyright © 2021 Raghav Gururajan <rg <at> raghavgururajan.name>
+;;; Copyright © 2021 Alexandr Vityazev <avityazev <at> posteo.org>
 ;;;
 ;;; 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")
-- 
2.33.0



-- 

Alexandr Vityazev




This bug report was last modified 2 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.