all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#69197] [PATCH] gnu: Add diod.
@ 2024-02-17  1:39 Justin Veilleux
  2024-02-18 18:58 ` bug#69197: " Justin Veilleux
  0 siblings, 1 reply; 2+ messages in thread
From: Justin Veilleux @ 2024-02-17  1:39 UTC (permalink / raw)
  To: 69197


[-- Attachment #1.1: Type: text/plain, Size: 62 bytes --]

Hi. This is a patch for Diod, a 9p filesystem server.
Cheers.

[-- Attachment #1.2: Type: text/html, Size: 93 bytes --]

[-- Attachment #2: 0001-gnu-Add-diod.patch --]
[-- Type: text/x-patch, Size: 3613 bytes --]

From a88e118700509d0db95f533fecd700976145718c Mon Sep 17 00:00:00 2001
Message-ID: <a88e118700509d0db95f533fecd700976145718c.1708054729.git.terramorpha@cock.li>
From: terramorpha <terramorpha@cock.li>
Date: Thu, 15 Feb 2024 22:36:39 -0500
Subject: [PATCH] gnu: Add diod.

* gnu/packages/plan9.scm (diod): New variable.

Change-Id: If8b8eea856376573c20141981cecd40723143737
---
 gnu/packages/patches/diod-version.patch | 15 ++++++++
 gnu/packages/plan9.scm                  | 47 ++++++++++++++++++++++++-
 2 files changed, 61 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/diod-version.patch

diff --git a/gnu/packages/patches/diod-version.patch b/gnu/packages/patches/diod-version.patch
new file mode 100644
index 0000000000..0c7e5baae6
--- /dev/null
+++ b/gnu/packages/patches/diod-version.patch
@@ -0,0 +1,15 @@
+This patch fixes the version.
+
+diff --git a/configure.ac b/configure.ac
+index 419056e..a160d6d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2,7 +2,7 @@
+ # Prologue
+ ##
+ AC_INIT([diod],
+-        m4_esyscmd([git describe --always | awk '/.*/ {sub(/^v/, ""); printf "%s",$1; exit}']))
++        [master])
+ AC_CONFIG_AUX_DIR([config])
+ AC_CONFIG_MACRO_DIR([config])
+ AC_CONFIG_SRCDIR([NEWS])
diff --git a/gnu/packages/plan9.scm b/gnu/packages/plan9.scm
index f78c26e215..b5abbb628b 100644
--- a/gnu/packages/plan9.scm
+++ b/gnu/packages/plan9.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2021 宋文武 <iyzsong@member.fsf.org>
 ;;; Copyright © 2023 Antero Mejr <antero@mailbox.org>
+;;; Copyright © 2024 Justin Veilleux <terramorpha@cock.li>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,12 +25,19 @@ (define-module (gnu packages plan9)
   #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages commencement)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages perl)
-  #:use-module (gnu packages xorg))
+  #:use-module (gnu packages xorg)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages lua)
+  #:use-module (gnu packages linux)
+  #:use-module (gnu packages admin))
 
 (define-public drawterm
   (let ((revision "1")
@@ -176,3 +184,40 @@ (define-public plan9port
       (license (list license:expat ;modifications
                      license:lpl1.02 ;original Plan9 code
                      license:zlib))))) ;src/cmd/bzip2
+
+(define-public diod
+  (package
+   (name "diod")
+   (version "1.0.24")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url "https://github.com/chaos/diod")
+           ;; The last release was in 2014
+           (commit "9da28f911978957dbec251c653200db7a4dcad6e")))
+     (sha256
+      (base32 "1kf981m615w9x2l8km360ap80mlds7pgd44jgrblh87cq1aq8pms"))
+     (patches
+      (search-patches "diod-version.patch"))))
+   (build-system gnu-build-system)
+   (inputs
+    (list
+     ncurses
+     lua
+     libcap
+     munge))
+   (native-inputs
+    (list
+     autoconf
+     automake
+     pkg-config))
+(home-page "https://github.com/chaos/diod")
+   (synopsis
+    "Distributed I/O Daemon - a 9P file server")
+   (description
+    "Diod is a multi-threaded, user space file server that speaks 9P2000.L
+protocol.")
+   (license license:gpl2+)))
+
+

base-commit: a8196632647b343f8e03c8f12fbdc0cc84ff90f6
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#69197: [PATCH] gnu: Add diod.
  2024-02-17  1:39 [bug#69197] [PATCH] gnu: Add diod Justin Veilleux
@ 2024-02-18 18:58 ` Justin Veilleux
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Veilleux @ 2024-02-18 18:58 UTC (permalink / raw)
  To: 69197-done

Sorry, I accidentally sent the same patch 3 times.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-18 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-17  1:39 [bug#69197] [PATCH] gnu: Add diod Justin Veilleux
2024-02-18 18:58 ` bug#69197: " Justin Veilleux

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.