From c6c5bd26f5dba1d398f84e7f0cb5cbd3dce5cf06 Mon Sep 17 00:00:00 2001 From: TakeV Date: Tue, 12 Dec 2023 23:32:32 -0500 Subject: [PATCH 1/2] Add note in readme on getting going with guix --- README.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.org b/README.org index 9bb5f7f..3e3a537 100644 --- a/README.org +++ b/README.org @@ -2,3 +2,10 @@ #+TITLE: README for Guile Guile-Docs +Like janetdocs or clojuredocs, but for guile! + +* Developing +** Guix +Just run src_bash{guix shell -Df guix.scm -m manifest.scm} to get a developer environment. + +manifest.scm is intended for dev tools related programs. From 19600c1477e487fe628add1c9763c623f5a98af2 Mon Sep 17 00:00:00 2001 From: TakeV Date: Tue, 12 Dec 2023 23:37:02 -0500 Subject: [PATCH 2/2] Configure guix.scm to read the local dir --- guix.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/guix.scm b/guix.scm index 80b9c31..12b43a6 100644 --- a/guix.scm +++ b/guix.scm @@ -1,8 +1,10 @@ (use-modules (guix packages) ((guix licenses) #:prefix license:) - (guix download) - (guix build-system gnu) + (guix gexp) + (guix git-download) + (guix utils) + (guix build-system copy) (gnu packages) (gnu packages autotools) (gnu packages guile) @@ -10,11 +12,17 @@ (gnu packages pkg-config) (gnu packages texinfo)) +(define vcs-file? + (or (git-predicate (current-source-directory)) + (const #t))) + (package (name "guile-guile-docs") (version "0.1") - (source "./guile-guile-docs-0.1.tar.gz") - (build-system gnu-build-system) + (source (local-file "." "guile-checkout" + #:recursive? #t + #:select? vcs-file?)) + (build-system copy-build-system) (arguments `()) (native-inputs `(("autoconf" ,autoconf)