summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2023-07-08 20:38:10 +0100
committerArun Isaac2023-07-08 20:39:18 +0100
commit01ec2e0c15a9f7db2b6374e1469a90df30109300 (patch)
tree9dae282fb4a80eca9bb92d9f23ddfe2187de3272
parent02677a508b407779f5991a230341e016deb7f69b (diff)
downloadccwl-01ec2e0c15a9f7db2b6374e1469a90df30109300.tar.gz
ccwl-01ec2e0c15a9f7db2b6374e1469a90df30109300.tar.lz
ccwl-01ec2e0c15a9f7db2b6374e1469a90df30109300.zip
Make repository a guix channel.
* .guix-authorizations, .guix-channel: New files. * guix.scm: Convert to a symlink pointing to .guix/ccwl-package.scm. Move original there. * .guix/ccwl-package.scm: Convert into a module with public packages.
-rw-r--r--.guix-authorizations4
-rw-r--r--.guix-channel3
-rw-r--r--.guix/ccwl-package.scm35
l---------[-rw-r--r--]guix.scm46
4 files changed, 43 insertions, 45 deletions
diff --git a/.guix-authorizations b/.guix-authorizations
new file mode 100644
index 0000000..a8ef8be
--- /dev/null
+++ b/.guix-authorizations
@@ -0,0 +1,4 @@
+(authorizations
+ (version 0)
+ (("7F73 0343 F2F0 9F3C 77BF 79D3 2E25 EE8B 6180 2BB3"
+ (name "arunisaac"))))
diff --git a/.guix-channel b/.guix-channel
new file mode 100644
index 0000000..35e181f
--- /dev/null
+++ b/.guix-channel
@@ -0,0 +1,3 @@
+(channel
+ (version 0)
+ (directory ".guix"))
diff --git a/.guix/ccwl-package.scm b/.guix/ccwl-package.scm
new file mode 100644
index 0000000..a7f31a6
--- /dev/null
+++ b/.guix/ccwl-package.scm
@@ -0,0 +1,35 @@
+;;; ccwl --- Concise Common Workflow Language
+;;; Copyright © 2021, 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;;
+;;; This file is part of ccwl.
+;;;
+;;; ccwl is free software: you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation, either version 3 of the License, or
+;;; (at your option) any later version.
+;;;
+;;; ccwl is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with ccwl. If not, see <https://www.gnu.org/licenses/>.
+
+(define-module (ccwl-package)
+ #:use-module ((gnu packages bioinformatics) #:prefix guix:)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix packages)
+ #:use-module (guix utils))
+
+(define-public ccwl
+ (package
+ (inherit guix:ccwl)
+ (source (local-file ".."
+ "ccwl-checkout"
+ #:recursive? #t
+ #:select? (or (git-predicate (dirname (current-source-directory)))
+ (const #t))))))
+
+ccwl
diff --git a/guix.scm b/guix.scm
index 0222810..96f95aa 100644..120000
--- a/guix.scm
+++ b/guix.scm
@@ -1,45 +1 @@
-;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
-;;;
-;;; This file is part of ccwl.
-;;;
-;;; ccwl is free software: you can redistribute it and/or modify it
-;;; under the terms of the GNU General Public License as published by
-;;; the Free Software Foundation, either version 3 of the License, or
-;;; (at your option) any later version.
-;;;
-;;; ccwl is distributed in the hope that it will be useful, but
-;;; WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with ccwl. If not, see <https://www.gnu.org/licenses/>.
-
-;;; Commentary:
-
-;; This script packages ccwl for GNU Guix.
-;;
-;; Run the following command to enter a development environment for
-;; ccwl:
-;;
-;; $ guix shell -Df guix.scm
-
-;;; Code:
-
-(use-modules (gnu packages autotools)
- ((gnu packages bioinformatics) #:prefix guix:)
- (guix gexp)
- (guix git-download)
- (guix packages))
-
-(define %source-dir (dirname (current-filename)))
-
-(define ccwl
- (package
- (inherit guix:ccwl)
- (source (local-file %source-dir
- #:recursive? #t
- #:select? (git-predicate %source-dir)))))
-
-ccwl
+.guix/ccwl-package.scm \ No newline at end of file