From 798e2adce714d8ed21092f558bebfb0d344b12dd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 19 Nov 2024 12:24:12 -0600 Subject: Make repo a channel. Link to guix-bioinformatics. * .guix-channel: Specify this channel's details. Add "guix-bioinformatics" channel as a dependency. * .guix/modules/gn-guile.scm: Inherit package definition from the guix-bioinformatics definition of this package. * guix.scm: Symlink to .guix/modules/gn-guile.scm --- .guix/modules/gn-guile.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .guix/modules/gn-guile.scm (limited to '.guix/modules') diff --git a/.guix/modules/gn-guile.scm b/.guix/modules/gn-guile.scm new file mode 100644 index 0000000..03f2b14 --- /dev/null +++ b/.guix/modules/gn-guile.scm @@ -0,0 +1,34 @@ +;; To use this file to build HEAD of gn-guile: +;; +;; guix build -f guix.scm +;; +;; To get a development container +;; +;; guix shell -C -D -f guix.scm +;; + +(define-module (gn-guile) + #:use-module ((gn packages guile) #:select (gn-guile) #:prefix gn:) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (guix git-download)) + +(define %source-dir (dirname (dirname (current-source-directory)))) + +(define vcs-file? + (or (git-predicate %source-dir) + (const #t))) + +(define-public gn-guile + (package + (inherit gn:gn-guile) + (source + (local-file "../.." + "gn-guile-checkout" + #:recursive? #t + #:select? vcs-file?)))) + +;; Add definition for tests should you need it, here. + +gn-guile -- cgit v1.2.3