unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#69195] [PATCH] gnu: Add diod.
@ 2024-02-17  1:29 Justin Veilleux
  2024-02-18 18:55 ` bug#69195: " Justin Veilleux
  0 siblings, 1 reply; 2+ messages in thread
From: Justin Veilleux @ 2024-02-17  1:29 UTC (permalink / raw)
  To: 69195

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]


This is a patch for the diod 9p file server. It is compatible with
linux's `mount -t 9p -o trans=tcp` 9p module.


[-- Attachment #2: 0001-gnu-Add-diod.patch --]
[-- Type: text/x-patch, Size: 3728 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


[-- Attachment #3: Type: text/plain, Size: 10 bytes --]


Cheers.


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

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

Sorry, I accidentally sent 3 times the same patch.




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

end of thread, other threads:[~2024-02-18 18:56 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:29 [bug#69195] [PATCH] gnu: Add diod Justin Veilleux
2024-02-18 18:55 ` bug#69195: " Justin Veilleux

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).