Skip to content
Snippets Groups Projects
Verified Commit 8c955495 authored by Reza Housseini's avatar Reza Housseini
Browse files

feat: make repository a guix channel

parent 1b9d9b01
No related branches found
No related tags found
No related merge requests found
;; This file lets us present this repo as a Guix channel.
(channel
(version 0)
(directory ".guix/modules"))
\ No newline at end of file
;; This file defines a Guix package. It can be used to spawn an
;; interactive development environment:
;;
;; guix shell
;;
;; Or it can be used to build Guile from a checkout in an isolated
;; environment:
;;
;; guix build -f guix.scm
;;
;; Likewise, you may cross-compile it:
;;
;; guix build -f guix.scm --target=x86_64-w64-mingw32
;;
;; … or perform a native build for another architecture, assuming
;; either offloading or transparent QEMU emulation is set up:
;;
;; guix build -f guix.scm -s riscv64-linux
(define-module (python-cluster-config-package)
#:use-module (guix)
#:use-module (guix git-download)
#:use-module (guix build-system pyproject)
#:use-module (guix utils)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages version-control)
#:use-module (ice-9 textual-ports))
(define %source-dir (string-append (current-source-directory) "/../.."))
(define-public python-cluster-config
(let* ((vcs-file? (or (git-predicate %source-dir) (const #t)))
(version-file (string-append %source-dir "/VERSION"))
(version-from-file (call-with-input-file version-file get-string-all)))
(package
(name "python-cluster-config")
(version version-from-file)
(source (local-file %source-dir "python-cluster-config-checkout"
#:recursive? #t
#:select? vcs-file?))
(build-system pyproject-build-system)
(arguments (list #:tests? #f))
(native-inputs (list python-setuptools-scm))
(propagated-inputs (list python-pyaml))
(home-page "https://gitlab.ost.ch/scl/ansible-cluster-config")
(synopsis "Collection of cluster configuration files")
(description "Collection of cluster configuration files")
(license license:gpl3))))
python-cluster-config
0.2.0
\ No newline at end of file
(append (list (channel
(name 'guix-ost)
(url "https://gitlab.ost.ch/scl/guix-ost.git")
(branch "main"))
(channel
(name 'slurm-submit)
(url "https://gitlab.ost.ch/scl/slurm-submit.git")
(branch "main"))
(channel
(name 'python-cluster-config)
(url "https://gitlab.ost.ch/scl/ansible-cluster-config.git")
(branch "master")))
%default-channels)
.guix/modules/python-cluster-config-package.scm
\ No newline at end of file
......@@ -26,7 +26,7 @@
cmd: cexec 'printf "GUIX_DAEMON_SOCKET=\"guix://master\"\nexport GUIX_DAEMON_SOCKET\n" >| /etc/profile.d/guix.sh'
- name: Copy channels file
ansible.builtin.copy:
src: channels.scm
src: cluster-channels.scm
dest: /root/.config/guix/channels.scm
- name: install needed dependencies
ansible.builtin.shell:
......
[project]
name = "cluster-config"
version = "0.1.0"
authors = [
{name = "Reza Housseini", email = "reza.housseini@ost.ch"},
]
description = "Ansible configuration details of OST IET cluster"
#readme = "README.org"
license = {text = "GPL-3.0-or-later"}
dynamic = ["readme", "version"]
classifiers = [
"Programming Language :: Python :: 3",
]
[tool.setuptools.dynamic]
readme = {file = ["README.org"], content-type = "text/plain"}
version = {file = ["VERSION"]}
[tool.setuptools.package-data]
"cluster_config.config" = ["cluster_config/*.yaml", "*.yaml"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment