2022-09-28 14:55:38 -06:00
|
|
|
(define-module (metznet)
|
2023-11-29 17:52:49 -07:00
|
|
|
#:use-module ((guix licenses)
|
|
|
|
#:prefix licenses:)
|
2021-12-26 10:38:49 -07:00
|
|
|
#:use-module (gnu packages)
|
2022-08-16 12:10:25 -06:00
|
|
|
#:use-module (gnu packages base)
|
2021-12-23 16:55:39 -07:00
|
|
|
#:use-module (gnu packages autotools)
|
2021-12-26 10:38:49 -07:00
|
|
|
#:use-module (gnu packages java)
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages audio)
|
|
|
|
#:use-module (gnu packages kerberos)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages crypto)
|
2022-08-16 12:10:25 -06:00
|
|
|
#:use-module (gnu services)
|
2021-12-20 00:27:18 -07:00
|
|
|
#:use-module (guix utils)
|
2021-12-26 10:38:49 -07:00
|
|
|
#:use-module (guix git-download)
|
2021-12-23 16:55:39 -07:00
|
|
|
#:use-module (guix git)
|
2021-12-26 10:38:49 -07:00
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (guix download)
|
2022-08-16 12:10:25 -06:00
|
|
|
#:use-module (guix records)
|
|
|
|
#:use-module (gnu packages vim)
|
2021-12-23 16:55:39 -07:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system copy)
|
2021-12-26 10:38:49 -07:00
|
|
|
#:use-module (gnu packages compression)
|
2022-08-16 12:10:25 -06:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (ice-9 ftw)
|
|
|
|
#:use-module (ice-9 match))
|
2021-12-20 00:27:18 -07:00
|
|
|
|
2022-08-16 12:10:25 -06:00
|
|
|
(define-public metznet-system
|
2021-12-23 16:55:39 -07:00
|
|
|
(package
|
2022-08-16 12:10:25 -06:00
|
|
|
(name "metznet-system")
|
2022-08-19 21:20:22 -06:00
|
|
|
(version "0.3")
|
2023-11-29 17:52:49 -07:00
|
|
|
(source (git-checkout (url "git://git.metznet.ca/system.git")
|
|
|
|
(commit (string-append "v" version))))
|
2022-08-16 12:10:25 -06:00
|
|
|
(build-system copy-build-system)
|
|
|
|
(synopsis "metznet GUIX system definitions")
|
|
|
|
(description "metznet GUIX system definitions")
|
|
|
|
(home-page "http://home.metznet.ca")
|
|
|
|
(license licenses:gpl3+)))
|
|
|
|
|
2022-08-19 23:02:55 -06:00
|
|
|
(define-record-type* <metznet-system-configuration>
|
2023-11-29 17:52:49 -07:00
|
|
|
metznet-system-configuration
|
|
|
|
make-metznet-system-configuration
|
2022-08-19 23:02:55 -06:00
|
|
|
metznet-system-configuration?
|
|
|
|
(repo metznet-system-configuration-repo
|
2023-11-29 17:52:49 -07:00
|
|
|
(default metznet-system))
|
2022-08-19 23:02:55 -06:00
|
|
|
(directory metznet-system-configuration-directory
|
|
|
|
(default "/etc/system")))
|
|
|
|
|
|
|
|
(define-public metznet-system-activation
|
|
|
|
(match-lambda
|
|
|
|
(($ <metznet-system-configuration> repo directory)
|
|
|
|
#~(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(if (directory-exists? #$directory)
|
|
|
|
(rmdir #$directory))
|
2023-11-29 17:52:49 -07:00
|
|
|
(symlink #$repo
|
|
|
|
#$directory)))))
|
2022-08-19 23:02:55 -06:00
|
|
|
|
|
|
|
(define-public metznet-system-service-type
|
2023-11-29 17:52:49 -07:00
|
|
|
(service-type (name 'metznet-system)
|
|
|
|
(description "GUIX System service using metznet files")
|
|
|
|
(extensions (list (service-extension activation-service-type
|
|
|
|
metznet-system-activation)))
|
|
|
|
(default-value (metznet-system-configuration))))
|
2022-08-19 23:02:55 -06:00
|
|
|
|
2022-08-16 12:10:25 -06:00
|
|
|
(define-public nvim-vimtex
|
|
|
|
(package
|
|
|
|
(name "nvim-vimtex")
|
|
|
|
(version "2.10")
|
2023-11-29 17:52:49 -07:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/lervag/vimtex")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1d16rlnp3rszx451nqrax15z46swa7cg4krbn840dcsspigx3ybl"))))
|
2022-08-16 12:10:25 -06:00
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
2023-11-29 17:52:49 -07:00
|
|
|
'(#:install-plan '(("." "share/nvim/site/pack/lervag/start/vimtex"))))
|
2022-08-16 12:10:25 -06:00
|
|
|
(home-page "")
|
|
|
|
(synopsis "LaTeX plugin for neovim")
|
2023-11-29 17:52:49 -07:00
|
|
|
(description
|
|
|
|
"Neovim plugin which provides highlighting for latex, along with bindings for auto-compilation")
|
2021-12-23 16:55:39 -07:00
|
|
|
(license licenses:gpl3+)))
|
2021-12-20 00:27:18 -07:00
|
|
|
|
2021-12-23 16:55:39 -07:00
|
|
|
(define-public vim-guile
|
|
|
|
(package
|
|
|
|
(name "vim-guile")
|
|
|
|
(version "1.0")
|
2023-11-29 17:52:49 -07:00
|
|
|
(source (git-checkout (url "https://gitlab.com/HiPhish/guile.vim.git")
|
|
|
|
(commit "f76959a9dbdc69cde018901de82ac5a3d443843c")))
|
2021-12-23 16:55:39 -07:00
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
2023-11-29 17:52:49 -07:00
|
|
|
'(#:install-plan '(("autoload" "share/vim/vimfiles/")
|
|
|
|
("ftdetect" "share/vim/vimfiles/")
|
|
|
|
("syntax" "share/vim/vimfiles/")
|
|
|
|
("test" "share/vim/vimfiles/"))))
|
|
|
|
(synopsis
|
|
|
|
"Syntax highlighting and file type detect of GNU Guile code in Vim")
|
|
|
|
(description
|
|
|
|
"Provides syntax highlighting and file type detection for GNU Guile files with the .scm extension.")
|
2021-12-23 16:55:39 -07:00
|
|
|
(home-page "https://gitlab.com/HiPhish/guile.vim")
|
2022-08-16 17:01:15 -06:00
|
|
|
(license licenses:gpl3+)))
|
2021-12-23 16:55:39 -07:00
|
|
|
|
|
|
|
(define-public vimwiki
|
|
|
|
(package
|
|
|
|
(name "vimwiki")
|
|
|
|
(version "2.5")
|
2023-11-29 17:52:49 -07:00
|
|
|
(source (git-checkout (url "https://github.com/vimwiki/vimwiki")
|
|
|
|
(commit (string-append "v" version))))
|
2021-12-23 16:55:39 -07:00
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
2023-11-29 17:52:49 -07:00
|
|
|
'(#:install-plan '(("autoload" "share/vim/vimfiles/")
|
|
|
|
("doc" "share/vim/vimfiles/")
|
|
|
|
("ftplugin" "share/vim/vimfiles/")
|
|
|
|
("plugin" "share/vim/vimfiles/")
|
|
|
|
("syntax" "share/vim/vimfiles/")
|
|
|
|
("test" "share/vim/vimfiles/"))))
|
2021-12-23 16:55:39 -07:00
|
|
|
(synopsis "A personal wiki plugin for vim")
|
2022-08-16 17:01:15 -06:00
|
|
|
(license licenses:gpl3+)
|
2021-12-23 16:55:39 -07:00
|
|
|
(home-page "https://github.com/vimwiki/vimwiki")
|
2023-11-29 17:52:49 -07:00
|
|
|
(description
|
|
|
|
"VimWiki is a personal wiki for Vim -- a number of linked text files that have their own syntax highlighting. With VimWiki, you can:
|
2021-12-23 16:55:39 -07:00
|
|
|
- Organize notes and ideas
|
|
|
|
- Manage to-do lists
|
|
|
|
- Write documentation
|
|
|
|
- Maintain a diary
|
|
|
|
- Export everything to HTML")))
|
2021-12-26 10:38:49 -07:00
|
|
|
|
|
|
|
(define-public starsector
|
|
|
|
(package
|
|
|
|
(name "starsector")
|
|
|
|
(version "0.95.1a-RC6")
|
|
|
|
(source (origin
|
2023-11-29 17:52:49 -07:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://s3.amazonaws.com/fractalsoftworks/starsector/starsector_linux-"
|
|
|
|
version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"14zxzs7xfrrq3apiyslk2cy29yp6qirikwbzanmka74a37aqpa1x"))))
|
2021-12-26 10:38:49 -07:00
|
|
|
(native-inputs (list unzip))
|
2023-11-29 17:52:49 -07:00
|
|
|
(inputs (list openjdk17
|
|
|
|
libxcursor
|
|
|
|
libxrandr
|
|
|
|
libxxf86vm
|
|
|
|
mesa
|
|
|
|
openal))
|
2021-12-26 10:38:49 -07:00
|
|
|
(propagated-inputs (list xrandr))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
2023-11-29 17:52:49 -07:00
|
|
|
'(#:install-plan '(("." "share/starsector"))))
|
2021-12-26 10:38:49 -07:00
|
|
|
(synopsis "A space game.")
|
|
|
|
(description "A very good space game. You will spend hours playing.")
|
|
|
|
(home-page "https://fractalsoftworks.com")
|
2022-08-18 10:51:01 -06:00
|
|
|
(license licenses:gpl3+)))
|
2022-09-17 19:28:48 -06:00
|
|
|
|
|
|
|
(define-public libutp
|
|
|
|
(package
|
|
|
|
(name "libutp")
|
|
|
|
(version "2")
|
2023-11-29 17:52:49 -07:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/bittorrent/libutp")
|
|
|
|
(commit "2b364cbb0650bdab64a5de2abb4518f9f228ec44")))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0yaiqksimnhwh14kmsq4kcyq6662b4ask36ni6p5n14dbyq1h2s6"))))
|
2022-09-17 19:28:48 -06:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2023-11-29 17:52:49 -07:00
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((lib (string-append (assoc-ref outputs "out")
|
|
|
|
"/lib"))
|
|
|
|
(include (string-append (assoc-ref outputs "out")
|
|
|
|
"/include")))
|
|
|
|
(install-file "libutp.so" lib)
|
|
|
|
(install-file "utp.h" include)
|
|
|
|
(install-file "utp_types.h" include) #t))))
|
|
|
|
#:make-flags '("libutp.so")
|
|
|
|
#:tests? #f))
|
2022-09-17 19:28:48 -06:00
|
|
|
(home-page "https://github.com/bittorrent/libutp")
|
2023-11-29 17:52:49 -07:00
|
|
|
(synopsis
|
|
|
|
"Shared library for libutp implementation of the LEDBAT protocol")
|
2022-09-17 19:28:48 -06:00
|
|
|
(description
|
2023-11-29 17:52:49 -07:00
|
|
|
"uTP is a TCP-like implementation of LEDBAT documented as a BitTorrent
|
2022-09-17 19:28:48 -06:00
|
|
|
extension in BEP-29. uTP provides reliable, ordered delivery while
|
|
|
|
maintaining minimum extra delay. It is implemented on top of UDP to be
|
|
|
|
cross-platform and functional today. As a result, uTP is the primary
|
|
|
|
transport for uTorrent peer-to-peer connections.
|
|
|
|
|
|
|
|
uTP is written in C++, but the external interface is strictly C (ANSI C89).")
|
2023-11-29 17:52:49 -07:00
|
|
|
(license licenses:expat)))
|