feat(guix): move packages to my channel

This commit is contained in:
Pavel Korytov 2021-05-21 20:39:46 +03:00
parent fd2e6ea2ad
commit 87e4cd1579
4 changed files with 16 additions and 1644 deletions

View file

@ -1,5 +1,9 @@
;; [[file:../../Guix.org::*Channels][Channels:1]]
(cons* (channel
(cons*
(channel
(name 'channel-q)
(url "file:///home/pavel/Code/channel-q"))
(channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix"))
%default-channels)

View file

@ -81,7 +81,11 @@ References:
- [[https://guix.gnu.org/manual/en/html_node/Channels.html][Guix channels reference]]
#+begin_src scheme :tangle .config/guix/channels.scm
(cons* (channel
(cons*
(channel
(name 'channel-q)
(url "file:///home/pavel/Code/channel-q"))
(channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix"))
%default-channels)

File diff suppressed because it is too large Load diff

View file

@ -1,49 +0,0 @@
(define-module (yadm)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix build-system gnu)
#:use-module (guix git-download)
#:use-module (gnu packages version-control)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages gawk))
(define-public yadm
(package
(name "yadm")
(version "3.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/TheLocehiliosan/yadm/")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0ga0p28nvqilswa07bzi93adk7wx6d5pgxlacr9wl9v1h6cds92s"))))
(build-system gnu-build-system)
(arguments
'(#:tests? #f
#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-file-names
(lambda _
(substitute* "yadm"
(("(.*)_PROGRAM=\"(.*)\"" all var prog)
(format #f "~a_PROGRAM=~s" var (which prog))))
(substitute* "yadm"
(("AWK_PROGRAM=(.*)")
(format #f "AWK_PROGRAM=(~s)\n" (which "gawk"))))
(substitute* "yadm" (("/bin/sh") "/bin/bash"))))
(delete 'bootstrap)
(delete 'configure)
(delete 'build))))
(propagated-inputs
`(("git" ,git)
("gnupg" ,gnupg)
("gawk" ,gawk)
("pinentry" ,pinentry)))
(synopsis "Yet Another Dotfile Manager")
(home-page "https://yadm.io")
(license gpl3)
(description "When you live in a command line, configurations are a deeply personal thing. They are often crafted over years of experience, battles lost, lessons learned, advice followed, and ingenuity rewarded. When you are away from your own configurations, you are an orphaned refugee in unfamiliar and hostile surroundings. You feel clumsy and out of sorts. You are filled with a sense of longing to be back in a place you know. A place you built. A place where all the short-cuts have been worn bare by your own travels. A place you proudly call… $HOME.")))