From e9034c37caab0eae66881a3669c320f6a98f4272 Mon Sep 17 00:00:00 2001
From: EuAndreh
(cons*
(channel
- (name 'org-euandre)
- (url "git://euandre.org/package-repository")
+ (name '$channel_name)
+ (url "$json->{vcs}->{git}")
(branch "main")
(introduction
(make-channel-introduction
@@ -617,14 +634,14 @@ sub emit_html() {
Include my public key for validating the repository
signatures:
- \$ wget -qO- https://euandre.org/s/package-repository/debian/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/euandre.org.asc
+ \$ wget -qO- $json->{'base-url'}/debian/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/$json->{namespace}.asc
Afterwards, include this repository to the list of
repositories that apt
uses for sources
by adding its URL to
/etc/apt/sources.list
:
- \$ sudo apt-add-repository 'deb https://euandre.org/s/package-repository/debian ./'
+ \$ sudo apt-add-repository 'deb $json->{'base-url'}/debian ./'
apt-add-repository
will already perform
an apt update
, so the packages from the
@@ -640,13 +657,13 @@ sub emit_html() {
nixpkgs = {
overlays = [
(import (fetchTarball {
- url = "https://euandre.org/git/package-repository/snapshot/package-repository-main.tar.xz";
+ url = "$json->{vcs}->{tarball}";
}) { inherit pkgs; })
];
};
All the packages live under the
- org-euandre
attribute set.
+ $overlay_name
attribute set.
@@ -654,7 +671,7 @@ sub emit_html() {
Add this repository as a tap:
- \$ brew tap --force-auto-update org/euandre https://euandre.org/git/package-repository/
+ \$ brew tap --force-auto-update $tap_name $json->{vcs}->{http}
The explicit --force-auto-update
option
is required, because homebrew(1)
will only
--
cgit v1.2.3