initial commit
This commit is contained in:
commit
08f6249fba
95
.dir-locals.el
Normal file
95
.dir-locals.el
Normal file
|
@ -0,0 +1,95 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; Per-directory local variables for GNU Emacs 23 and later.
|
||||
|
||||
((nil
|
||||
. ((fill-column . 78)
|
||||
(tab-width . 8)
|
||||
(sentence-end-double-space . t)))
|
||||
(c-mode . ((c-file-style . "gnu")))
|
||||
(scheme-mode
|
||||
.
|
||||
((indent-tabs-mode . nil)
|
||||
(eval . (put 'eval-when 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-prompt 'scheme-indent-function 1))
|
||||
(eval . (put 'test-assert 'scheme-indent-function 1))
|
||||
(eval . (put 'test-assertm 'scheme-indent-function 1))
|
||||
(eval . (put 'test-equalm 'scheme-indent-function 1))
|
||||
(eval . (put 'test-equal 'scheme-indent-function 1))
|
||||
(eval . (put 'test-eq 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-input-string 'scheme-indent-function 1))
|
||||
(eval . (put 'guard 'scheme-indent-function 1))
|
||||
(eval . (put 'lambda* 'scheme-indent-function 1))
|
||||
(eval . (put 'substitute* 'scheme-indent-function 1))
|
||||
(eval . (put 'match-record 'scheme-indent-function 2))
|
||||
|
||||
;; 'modify-phases' and its keywords.
|
||||
(eval . (put 'modify-phases 'scheme-indent-function 1))
|
||||
(eval . (put 'replace 'scheme-indent-function 1))
|
||||
(eval . (put 'add-before 'scheme-indent-function 2))
|
||||
(eval . (put 'add-after 'scheme-indent-function 2))
|
||||
|
||||
(eval . (put 'modify-services 'scheme-indent-function 1))
|
||||
(eval . (put 'with-directory-excursion 'scheme-indent-function 1))
|
||||
(eval . (put 'package 'scheme-indent-function 0))
|
||||
(eval . (put 'origin 'scheme-indent-function 0))
|
||||
(eval . (put 'build-system 'scheme-indent-function 0))
|
||||
(eval . (put 'bag 'scheme-indent-function 0))
|
||||
(eval . (put 'graft 'scheme-indent-function 0))
|
||||
(eval . (put 'operating-system 'scheme-indent-function 0))
|
||||
(eval . (put 'file-system 'scheme-indent-function 0))
|
||||
(eval . (put 'manifest-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'manifest-pattern 'scheme-indent-function 0))
|
||||
(eval . (put 'substitute-keyword-arguments 'scheme-indent-function 1))
|
||||
(eval . (put 'with-store 'scheme-indent-function 1))
|
||||
(eval . (put 'with-external-store 'scheme-indent-function 1))
|
||||
(eval . (put 'with-error-handling 'scheme-indent-function 0))
|
||||
(eval . (put 'with-mutex 'scheme-indent-function 1))
|
||||
(eval . (put 'with-atomic-file-output 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-compressed-output-port 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-decompressed-port 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-gzip-input-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-gzip-output-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-lzip-input-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-lzip-output-port 'scheme-indent-function 1))
|
||||
(eval . (put 'signature-case 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-batch-eval 'scheme-indent-function 0))
|
||||
(eval . (put 'emacs-batch-edit-file 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-substitute-sexps 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-substitute-variables 'scheme-indent-function 1))
|
||||
(eval . (put 'with-derivation-narinfo 'scheme-indent-function 1))
|
||||
(eval . (put 'with-derivation-substitute 'scheme-indent-function 2))
|
||||
(eval . (put 'with-status-report 'scheme-indent-function 1))
|
||||
(eval . (put 'with-status-verbosity 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'mlambda 'scheme-indent-function 1))
|
||||
(eval . (put 'mlambdaq 'scheme-indent-function 1))
|
||||
(eval . (put 'syntax-parameterize 'scheme-indent-function 1))
|
||||
(eval . (put 'with-monad 'scheme-indent-function 1))
|
||||
(eval . (put 'mbegin 'scheme-indent-function 1))
|
||||
(eval . (put 'mwhen 'scheme-indent-function 1))
|
||||
(eval . (put 'munless 'scheme-indent-function 1))
|
||||
(eval . (put 'mlet* 'scheme-indent-function 2))
|
||||
(eval . (put 'mlet 'scheme-indent-function 2))
|
||||
(eval . (put 'run-with-store 'scheme-indent-function 1))
|
||||
(eval . (put 'run-with-state 'scheme-indent-function 1))
|
||||
(eval . (put 'wrap-program 'scheme-indent-function 1))
|
||||
(eval . (put 'with-imported-modules 'scheme-indent-function 1))
|
||||
(eval . (put 'with-extensions 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'with-database 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-transaction 'scheme-indent-function 2))
|
||||
|
||||
(eval . (put 'call-with-container 'scheme-indent-function 1))
|
||||
(eval . (put 'container-excursion 'scheme-indent-function 1))
|
||||
(eval . (put 'eventually 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'call-with-progress-reporter 'scheme-indent-function 1))
|
||||
|
||||
;; This notably allows '(' in Paredit to not insert a space when the
|
||||
;; preceding symbol is one of these.
|
||||
(eval . (modify-syntax-entry ?~ "'"))
|
||||
(eval . (modify-syntax-entry ?$ "'"))
|
||||
(eval . (modify-syntax-entry ?+ "'"))))
|
||||
(emacs-lisp-mode . ((indent-tabs-mode . nil)))
|
||||
(texinfo-mode . ((indent-tabs-mode . nil)
|
||||
(fill-column . 72))))
|
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
7
.guix-authorizations
Normal file
7
.guix-authorizations
Normal file
|
@ -0,0 +1,7 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; -*- mode: scheme -*-
|
||||
|
||||
(authorizations
|
||||
(version 0)
|
||||
(("9E23 D5BC AEB7 E364 7321 4A00 C3A7 8EB3 FEFE 6C04"
|
||||
(name "igor"))))
|
6
.guix-channel
Normal file
6
.guix-channel
Normal file
|
@ -0,0 +1,6 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; -*- mode: scheme -*-
|
||||
|
||||
(channel
|
||||
(version 0)
|
||||
(url "https://code.glarus.dev/guix/channel.git"))
|
28
README.org
Normal file
28
README.org
Normal file
|
@ -0,0 +1,28 @@
|
|||
#+TITLE: Glarus Guix Channel
|
||||
|
||||
This is Glarus software repository for the
|
||||
[[https://www.gnu.org/software/guix/][GNU Guix]] package manager,
|
||||
which packages some software which may not be included in the official
|
||||
distribution for ethical or policy-related reasons. Also some packages
|
||||
are based on official ones, but include changes which do not compatible
|
||||
with Guix project's policy.
|
||||
|
||||
* Installation
|
||||
|
||||
This repository can be installed as a
|
||||
[[https://www.gnu.org/software/guix/manual/en/html_node/Channels.html][Guix channel]].
|
||||
To do so, add it to =~/.config/guix/channels.scm=:
|
||||
|
||||
#+BEGIN_SRC scheme
|
||||
(cons* (channel
|
||||
(name 'glarus)
|
||||
(url "https://code.glarus.dev/guix/channel.git")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"TBD"
|
||||
(openpgp-fingerprint
|
||||
"9E23 D5BC AEB7 E364 7321 4A00 C3A7 8EB3 FEFE 6C04"))))
|
||||
%default-channels)
|
||||
#+END_SRC
|
||||
|
||||
Then run =guix pull=.
|
50
glarus/packages/elixir.scm
Normal file
50
glarus/packages/elixir.scm
Normal file
|
@ -0,0 +1,50 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; Elixir package.
|
||||
|
||||
(define-module (glarus packages elixir)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages version-control)
|
||||
#:use-module ((gnu packages elixir) #:prefix gnu:)
|
||||
#:use-module (glarus packages erlang))
|
||||
|
||||
(define-public elixir
|
||||
(let* ((elixir-erl-compiler-path "lib/elixir/src/elixir_erl_compiler.erl")
|
||||
(elixir-erl-compiler-path-orig (string-append elixir-erl-compiler-path ".orig")))
|
||||
(package/inherit gnu:elixir
|
||||
(name "elixir")
|
||||
(version "1.16.2")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/elixir-lang/elixir")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "145lwbwpyj686rq3xkzg4i07v0z8x2j185aa2lvyj5ppzv2ihiim"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments gnu:elixir)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'replace-paths 'pre-install-source
|
||||
(lambda _
|
||||
(copy-recursively "lib" (string-append #$output "/source/lib"))))
|
||||
(add-after 'pre-install-source 'patch-elixir-compiler
|
||||
(lambda _
|
||||
(copy-recursively #$elixir-erl-compiler-path #$elixir-erl-compiler-path-orig)
|
||||
(let ((source (string-append "/tmp/guix-build-elixir-" #$version ".drv-0"))
|
||||
(destination #$output))
|
||||
(substitute* #$elixir-erl-compiler-path
|
||||
(("source, Source")
|
||||
(string-append "source, string:replace(Source, \"" source "\", \"" destination "\")"))))))
|
||||
(add-after 'build 'restore-and-recompile
|
||||
(lambda _
|
||||
(copy-recursively #$elixir-erl-compiler-path-orig #$elixir-erl-compiler-path)
|
||||
(invoke "make")))
|
||||
(delete 'wrap-programs)))))
|
||||
(inputs
|
||||
(list erlang git)))))
|
46
glarus/packages/erlang.scm
Normal file
46
glarus/packages/erlang.scm
Normal file
|
@ -0,0 +1,46 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; Erlang package.
|
||||
|
||||
(define-module (glarus packages erlang)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module ((gnu packages erlang) #:prefix gnu:)
|
||||
#:use-module (gnu packages perl))
|
||||
|
||||
(define-public erlang
|
||||
(let ((uri-prefix "https://github.com/erlang/otp/releases/download/OTP-"))
|
||||
(package/inherit gnu:erlang
|
||||
(name "erlang")
|
||||
(version "26.2.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append uri-prefix version "/otp_src_" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0a6ccckq1himvczdia35mal5w58zzjc73bzdg98cphfqqm5gydym"))
|
||||
(patches (search-patches "erlang-man-path.patch"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments gnu:erlang)
|
||||
((#:configure-flags flags #~'())
|
||||
#~(cons* "--enable-dirty-schedulers"
|
||||
"--enable-kernel-poll"
|
||||
"--enable-esock"
|
||||
"--without-javac"
|
||||
#$flags))
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'install-doc 'install-chunks
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(invoke "make" "install-docs" "DOC_TARGETS=chunks")))))))
|
||||
(native-inputs
|
||||
`(("perl" ,perl)
|
||||
("erlang-manpages"
|
||||
,(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append uri-prefix version "/otp_doc_man_" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0iwz8mq4rg7h49gmj5h42ghj4cq4vir9izn2nmivy6fn96lwdh8n")))))))))
|
57
glarus/packages/xxkb.scm
Normal file
57
glarus/packages/xxkb.scm
Normal file
|
@ -0,0 +1,57 @@
|
|||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;; Xxkb package.
|
||||
|
||||
(define-module (glarus packages xxkb)
|
||||
#:use-module (guix packages)
|
||||
#:use-module ((guix licenses) #:select (artistic2.0))
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages xorg))
|
||||
|
||||
(define-public xxkb
|
||||
(package
|
||||
(name "xxkb")
|
||||
(version "1.11.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://sourceforge/xxkb/"
|
||||
name "-" version "-src.tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf"))))
|
||||
(build-system gnu-build-system)
|
||||
(inputs (list libx11
|
||||
libxext
|
||||
libxt
|
||||
libxpm))
|
||||
(native-inputs
|
||||
(list imake))
|
||||
(arguments
|
||||
`(#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((imake (assoc-ref inputs "imake"))
|
||||
(out (assoc-ref outputs "out")))
|
||||
(invoke "xmkmf")
|
||||
(substitute* "Makefile"
|
||||
((imake) out)
|
||||
(("(MANPATH = )[[:graph:]]*" _ front)
|
||||
(string-append front out "/share/man"))
|
||||
(("XAPPLOADDIR = /etc/X11/app-defaults")
|
||||
(string-append "XAPPLOADDIR = " out "/lib/X11/app-defaults"))
|
||||
(("ETCX11DIR = /etc/X11")
|
||||
(string-append "ETCX11DIR = " out "/etc/X11")))
|
||||
#t))))))
|
||||
(home-page "https://xxkb.sourceforge.net/")
|
||||
(synopsis "A keyboard layout indicator and switcher")
|
||||
(description
|
||||
"The xxkb program is a keyboard layout switcher and indicator. Unlike the
|
||||
programs that reload keyboard maps and use their own hot-keys, xxkb is a
|
||||
simple GUI for XKB (X KeyBoard extension) and just sends commands to and
|
||||
accepts events from XKB. That means that it will work with the existing
|
||||
setup of your X Server without any modifications.")
|
||||
(license artistic2.0)))
|
Loading…
Reference in a new issue