From 68d91128996b72236bca461129346d1ff6933d82 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sat, 16 Dec 2023 03:09:55 +0000
Subject: [PATCH] Add recipes

---
 recipes/wip/cargo-audit/recipe.toml |  2 +-
 recipes/wip/guile/recipe.toml       | 14 ++++++++++++++
 recipes/wip/guix/recipe.toml        | 10 ++++++++++
 recipes/wip/libeditline/recipe.toml |  5 +++++
 recipes/wip/nix/recipe.toml         | 22 ++++++++++++++++++++++
 5 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 recipes/wip/guile/recipe.toml
 create mode 100644 recipes/wip/guix/recipe.toml
 create mode 100644 recipes/wip/libeditline/recipe.toml
 create mode 100644 recipes/wip/nix/recipe.toml

diff --git a/recipes/wip/cargo-audit/recipe.toml b/recipes/wip/cargo-audit/recipe.toml
index e24a6537f..ee8960238 100644
--- a/recipes/wip/cargo-audit/recipe.toml
+++ b/recipes/wip/cargo-audit/recipe.toml
@@ -1,4 +1,4 @@
-#TODO Weird error with libssh2-sys crate
+#TODO Weird error with libssh2-sys crate (after a patch on the ring crate)
 [source]
 tar = "https://github.com/rustsec/rustsec/archive/refs/tags/cargo-audit/v0.18.3.tar.gz"
 [build]
diff --git a/recipes/wip/guile/recipe.toml b/recipes/wip/guile/recipe.toml
new file mode 100644
index 000000000..dded977d1
--- /dev/null
+++ b/recipes/wip/guile/recipe.toml
@@ -0,0 +1,14 @@
+#TODO make dependencies work
+[source]
+tar = "https://ftp.gnu.org/gnu/guile/guile-3.0.9.tar.xz"
+[build]
+template = "configure"
+dependencies = [
+    "libgmp",
+    "libiconv",
+    "libunistring",
+    "libgc",
+    "readline",
+    "libffi",
+    "libintl",
+]
diff --git a/recipes/wip/guix/recipe.toml b/recipes/wip/guix/recipe.toml
new file mode 100644
index 000000000..3835ee8ad
--- /dev/null
+++ b/recipes/wip/guix/recipe.toml
@@ -0,0 +1,10 @@
+#TODO fix libgcrypt
+#TODO maybe missing dependencies, see https://guix.gnu.org/manual/en/html_node/Requirements.html
+[source]
+tar = "https://ftpmirror.gnu.org/gnu/guix/guix-1.4.0.tar.gz"
+[build]
+template = "configure"
+dependencies = [
+    "libgcrypt",
+    "sqlite3",
+]
diff --git a/recipes/wip/libeditline/recipe.toml b/recipes/wip/libeditline/recipe.toml
new file mode 100644
index 000000000..3285058c8
--- /dev/null
+++ b/recipes/wip/libeditline/recipe.toml
@@ -0,0 +1,5 @@
+#TODO Not compiled or tested
+[source]
+tar = "https://ftp.troglobit.com/editline/editline-1.17.1.tar.xz"
+[build]
+template = "configure"
diff --git a/recipes/wip/nix/recipe.toml b/recipes/wip/nix/recipe.toml
new file mode 100644
index 000000000..85fb911e5
--- /dev/null
+++ b/recipes/wip/nix/recipe.toml
@@ -0,0 +1,22 @@
+#TODO make dependencies work
+[source]
+tar = "https://github.com/NixOS/nix/archive/refs/tags/2.19.2.tar.gz"
+[build]
+template = "custom"
+dependencies = [
+    "libbrotili",
+    "openssl1",
+    "curl",
+    "sqlite3",
+    "libeditline",
+    "boost",
+    "libsodium",
+    "libcpuid",
+]
+script = """
+autoreconf -vfi
+COOKBOOK_CONFIGURE_FLAGS+=(
+    --disable-tests
+)
+cookbook_configure
+"""
-- 
GitLab