diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2020-07-07 23:07:58 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-07-07 23:11:41 +0300 |
| commit | 43c88a93219d9e06a550e2aa104be0f73724a914 (patch) | |
| tree | 792c42a4caf2a06021784d00c3ff702707f4f6f3 | |
| parent | gnu: y2rss: Fix version. (diff) | |
| download | guix-wigust-43c88a93219d9e06a550e2aa104be0f73724a914.tar.gz | |
Refactor.
* .gitlab-ci.yml: Delete file.
* .guix-channel: Delete file.
* guix/wigust/packages/connect.scm: Delete file.
* guix/wigust/packages/tome4.scm: Delete file.
* guix/wigust/packages/dotfiles.scm: Replace cgit.duckdns.org with github.com.
* guix/wigust/packages/emacs.scm: Replace cgit.duckdns.org with github.com.
| -rw-r--r-- | .gitlab-ci.yml | 15 | ||||
| -rw-r--r-- | .guix-channel | 7 | ||||
| -rw-r--r-- | guix/wigust/packages/connect.scm | 195 | ||||
| -rw-r--r-- | guix/wigust/packages/dotfiles.scm | 4 | ||||
| -rw-r--r-- | guix/wigust/packages/emacs.scm | 2 | ||||
| -rw-r--r-- | guix/wigust/packages/tome4.scm | 32 |
6 files changed, 3 insertions, 252 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index ea25a50..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ -stages: - - test - -test-all: - tags: - - guixsd - stage: test - script: - - sed -i "s|@CI_PROJECT_URL@|$CI_PROJECT_URL.git|" channels.scm - - sed -i "s|@CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|" channels.scm - - guix pull --profile=.guix-profile --channels=channels.scm - - .guix-profile/bin/guix describe - - | - .guix-profile/bin/guix build --quiet --no-grafts --fallback \ - $(grep define-public guix/wigust/packages/*.scm | cut -f2 -d' ') diff --git a/.guix-channel b/.guix-channel deleted file mode 100644 index 0b90677..0000000 --- a/.guix-channel +++ /dev/null @@ -1,7 +0,0 @@ -(channel - (version 0) - (directory "guix") - (dependencies - (channel - (name guix-tome4) - (url "https://cgit.duckdns.org/git/guix/guix-tome4")))) diff --git a/guix/wigust/packages/connect.scm b/guix/wigust/packages/connect.scm deleted file mode 100644 index ac1a0f3..0000000 --- a/guix/wigust/packages/connect.scm +++ /dev/null @@ -1,195 +0,0 @@ -;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> -;;; -;;; This file is part of GNU Guix. -;;; -;;; GNU Guix 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. -;;; -;;; GNU Guix 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 GNU Guix. If not, see <http://www.gnu.org/licenses/>. - -(define-module (wigust packages connect) - #:use-module (guix) - #:use-module (guix build-system python) - #:use-module (guix build-system trivial) - #:use-module (guix build utils) - #:use-module (guix git-download) - #:use-module (gnu packages bash) - #:use-module (gnu packages guile) - #:use-module (gnu packages python-crypto) - #:use-module (gnu packages python-xyz) - #:use-module (gnu packages password-utils) - #:use-module (gnu packages ssh) - #:use-module ((guix licenses) #:prefix license:)) - -(define-public cisco - (let ((commit "36ae61a6004cd8e33252ede7957bd777bcfb8129")) - (package - (name "cisco") - (version (git-version "0.0.1" "1" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://cgit.duckdns.org/git/connect/cisco") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "12raq71alycf9lh0gvkk41m85xrcz9ii0xrzfd75j47r6gj8xgr6")))) - (build-system python-build-system) - (propagated-inputs - `(("python-pexpect" ,python-pexpect))) - (home-page "https://wugi.info/") - (synopsis "Automate connection to Cisco hardware over Telnet") - (description "This package provides a Python script to automate -connection to Cisco hardware over Telnet.") - (license license:gpl3+)))) - -(define-public cisco-interact - (let ((commit "6c0ad9a683023ebf8cf7474dbdfee5084f4601f1")) - (package - (name "cisco-interact") - (version (git-version "0.0.1" "1" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://cgit.duckdns.org/git/connect/cisco-interact") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "01wrsinrm8807pvgwk1sakn3aqnghkciar3j4snxfq9wnlhhhhrs")))) - (build-system python-build-system) - (propagated-inputs - `(("python-pexpect" ,python-pexpect))) - (home-page "https://wugi.info/") - (synopsis "Automate connection to Cisco hardware over Telnet interactively") - (description "This package provides a Python script to automate -connection to Cisco hardware over Telnet interactively.") - (license license:gpl3+)))) - -(define-public ssh-sudo - (let ((commit "09567495371612e3338a564d037afd08c165d9e0")) - (package - (name "ssh-sudo") - (version (git-version "0.0.1" "1" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://cgit.duckdns.org/git/connect/ssh-sudo") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1bgsj1nkhi73rg8w79hkfv0b9rznz2g7iww6d8iw3y5z5qr5adxb")))) - (build-system python-build-system) - (propagated-inputs - `(("python-paramiko" ,python-paramiko))) - (home-page "https://wugi.info/") - (synopsis "Automate connection to servers over SSH") - (description "This package provides a Python script to automate -connection to servers over SSH.") - (license license:gpl3+)))) - -(define-public ssh-aliases - (let ((commit "047f5d2a35d8f97a49545b21614990f6e01f58d3")) - (package - (name "ssh-aliases") - (version (git-version "0.0.1" "1" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://cgit.duckdns.org/git/connect/ssh-aliases") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1dk785dmwifghw3nkydxl3h66cy0wf1l8m3khllcynpj1cqb6g6q")))) - (build-system trivial-build-system) - (inputs - `(("guile" ,guile-3.0))) - (arguments - `(#:modules ((guix build utils)) - #:builder - (begin - (use-modules (guix build utils)) - (setenv "PATH" - (string-append - (assoc-ref %build-inputs "guile") "/bin")) - (copy-recursively (assoc-ref %build-inputs "source") ".") - (substitute* "ssh-aliases/main.scm" - (("/run/current-system/profile/bin/guile") - (which "guile"))) - (mkdir-p (string-append %output "/bin")) - (copy-file "ssh-aliases/main.scm" - (string-append %output "/bin/ssh-aliases")) - #t))) - (home-page "https://wugi.info/") - (synopsis "Generate aliases based on SSH known-hosts") - (description "This package provides a Guile script to generate -aliases based on SSH known-hosts.") - (license license:gpl3+)))) - -(define-public connect - (let ((commit "e09253e837bee3aa66abb52966f75d66664c2de5")) - (package - (name "connect") - (version (git-version "0.0.1" "1" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://cgit.duckdns.org/git/connect/connect") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "126d7lnd61pv7iqkhpvas4zksjym80n17p8y7kr8jpk9xrcyk1ni")))) - (build-system trivial-build-system) - (inputs - `(("guile" ,guile-3.0) - ("cisco", cisco) - ("cisco-interact", cisco-interact) - ("pass" ,password-store) - ("ssh" ,openssh) - ("ssh-sudo" ,ssh-sudo) - ("sshpass" ,sshpass))) - (arguments - `(#:modules ((guix build utils)) - #:builder - (begin - (use-modules (guix build utils)) - (setenv "PATH" - (string-append - (assoc-ref %build-inputs "guile") "/bin")) - (copy-recursively (assoc-ref %build-inputs "source") ".") - (substitute* "connect" - (("/run/current-system/profile/bin/guile") - (which "guile")) - (("@PASS@") - (string-append (assoc-ref %build-inputs "pass") "/bin/pass")) - (("@SSH@") - (string-append (assoc-ref %build-inputs "ssh") "/bin/ssh")) - (("@SSHPASS@") - (string-append (assoc-ref %build-inputs "sshpass") "/bin/sshpass")) - (("@SSH_SUDO@") - (string-append (assoc-ref %build-inputs "ssh-sudo") "/bin/ssh_sudo")) - (("@CISCO@") - (string-append (assoc-ref %build-inputs "cisco") "/bin/cisco")) - (("@CISCO_INTERACT@") - (string-append (assoc-ref %build-inputs "cisco-interact") "/bin/cisco_interact"))) - (mkdir-p (string-append %output "/bin")) - (copy-file "connect" (string-append %output "/bin/connect")) - #t))) - (home-page "https://wugi.info/") - (synopsis "Guile script to connect to different hardware") - (description "This package provides a Guile script to connect to -different hardware.") - (license license:gpl3+)))) diff --git a/guix/wigust/packages/dotfiles.scm b/guix/wigust/packages/dotfiles.scm index 81ee3f1..2e7018b 100644 --- a/guix/wigust/packages/dotfiles.scm +++ b/guix/wigust/packages/dotfiles.scm @@ -34,7 +34,7 @@ (origin (method git-fetch) (uri (git-reference - (url "https://cgit.duckdns.org/git/wigust/dotfiles") + (url "https://github.com/kitnil/dotfiles.git") (commit commit))) (file-name (git-file-name name version)) (sha256 @@ -64,7 +64,7 @@ (copy-file "bin/executable_dotfiles" executable) (chmod executable #o555)) #t))) - (home-page "https://gitlab.com/wigust/dotfiles/") + (home-page "https://github.com/kitnil/dotfiles") (license license:gpl3+) (synopsis "WiGust dotfiles") (description "This package provides wigust dotfiles which could diff --git a/guix/wigust/packages/emacs.scm b/guix/wigust/packages/emacs.scm index 13e84d4..315e3d4 100644 --- a/guix/wigust/packages/emacs.scm +++ b/guix/wigust/packages/emacs.scm @@ -1466,7 +1466,7 @@ and manipulated by user-defined functions to do various things such as: (source (origin (method git-fetch) (uri (git-reference - (url "https://cgit.duckdns.org/git/emacs/emacs-dashboard") + (url "https://github.com/wigust/emacs-dashboard.git") (commit commit))) (file-name (git-file-name name (package-version emacs-dashboard))) (sha256 diff --git a/guix/wigust/packages/tome4.scm b/guix/wigust/packages/tome4.scm deleted file mode 100644 index a8833a6..0000000 --- a/guix/wigust/packages/tome4.scm +++ /dev/null @@ -1,32 +0,0 @@ -(define-module (wigust packages tome4) - #:use-module ((guix licenses) #:prefix license:) - #:use-module (gnu packages compression) - #:use-module (gnu packages) - #:use-module (gnu packages games) - #:use-module (guix build-system trivial) - #:use-module (guix download) - #:use-module (guix packages) - #:use-module (guix utils) - #:use-module (tome4 packages tome4)) - -(define-public tome4-with-addons-custom - (package - (inherit tome4-with-addons) - (name "tome4-with-addons-custom") - (version (package-version tome4)) - (arguments - (substitute-keyword-arguments - (package-arguments tome4-with-addons) - ((#:phases phases) - `(modify-phases ,phases - (add-before 'install 'my-customizations - (lambda* (#:key inputs #:allow-other-keys) - (let ((unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")) - (zip (string-append (assoc-ref inputs "zip") "/bin/zip"))) - (let ((archive (string-append "game/modules/tome-" ,version ".team"))) - (mkdir-p "mod/class") - (system* unzip "-j" archive "mod/class/Game.lua" "-d" "mod/class") - ;; Change tactic grid color from yellow to black. - (substitute* "mod/class/Game.lua" - (("d5990880") "1a1a1a80")) - (system* zip archive "mod/class/Game.lua"))))))))))) |
