From 105dd36eb8d26339e44c21d5bd67d698ec4ccf07 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 24 Jun 2021 18:10:37 -0300 Subject: scripts/paku: Stop duplicating OS instructions for every package --- scripts/paku | 74 +++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 33 deletions(-) (limited to 'scripts/paku') diff --git a/scripts/paku b/scripts/paku index 4f40b4d..a7e7806 100755 --- a/scripts/paku +++ b/scripts/paku @@ -287,25 +287,12 @@ EOF

-

- Guix -

+

Guix

- Add this channel to your Add this channel to your ~/.config/guix/channels.scm: -

-
(cons*
- (channel
-  (name 'xyz-euandreh)
-  (url "git://euandreh.xyz/package-repository")
-  (branch "main")
-  (introduction
-   (make-channel-introduction
-    "d749e053e6db365069cb9b2ef47a78b06f9e7361"
-    (openpgp-fingerprint
-     "5BDA E9B8 B2F6 C6BC BB0D  6CE5 81F9 0EC3 CD35 6060"))))
- %default-channels)
-

- Now you can create a new Guix environment that includes this package: + After following the + Guix instructions to include this + channel, now you can create an environment that includes this + package:

$ guix environment --ad-hoc $NAME$SUFFIX

@@ -313,23 +300,13 @@ EOF

$ guix install $NAME$SUFFIX
-
-

- Nix -

+

Nix

- Add the overlay to your /etc/nixox/configuration.nix: -

-
nixpkgs = {
-  overlays = [
-    (import (fetchTarball {
-      url = "https://git.euandreh.xyz/package-repository/snapshot/package-repository-main.tar.gz";
-    }) { inherit pkgs; })
-  ];
-};
-

- Now you can create a new Nix shell that includes this package: + After following the + Nix instructions to include this + repository as an overlay, now you can create a new Nix shell that + includes this package:

$ nix-shell -p $NAME$SUFFIX

@@ -344,6 +321,37 @@ EOF cat <> "$HTML_OUT" +

+

Guix instructions

+

+ Add this channel to your ~/.config/guix/channels.scm: +

+
(cons*
+ (channel
+  (name 'xyz-euandreh)
+  (url "git://euandreh.xyz/package-repository")
+  (branch "main")
+  (introduction
+   (make-channel-introduction
+    "d749e053e6db365069cb9b2ef47a78b06f9e7361"
+    (openpgp-fingerprint
+     "5BDA E9B8 B2F6 C6BC BB0D  6CE5 81F9 0EC3 CD35 6060"))))
+ %default-channels)
+
+ +
+

Nix instructions

+

+ Add the overlay to your /etc/nixox/configuration.nix: +

+
nixpkgs = {
+  overlays = [
+    (import (fetchTarball {
+      url = "https://git.euandreh.xyz/package-repository/snapshot/package-repository-main.tar.gz";
+    }) { inherit pkgs; })
+  ];
+};
+
EOF -- cgit v1.2.3