-
-
Notifications
You must be signed in to change notification settings - Fork 12
Installation
An AUR package is available, albafetch-git. There are three packages on the AUR that provide albafetch:
- albafetch will compile the source code of the latest release
- albafetch-bin will install a pre-compiled binary from the latest release
- albafetch-git will compile the source of the latest commit in master
You can find more information on how to install packages from the AUR in the Arch Wiki
You can create a DEB package from the repo itself
This can be done via a guided procedure
$ git clone https://github.com/alba4k/albafetch
$ cd albafetch
$ make deb
This will produce a deb package for you and ask if you want to install it.
nix profile:
$ nix profile install .#albafetchnix-env:
$ nix-env -iA packages.<your platform>.albafetch # platform examples: x86_64-linux, aarch64-linux, aarch64-darwinUsing the overlay (Flake):
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
albafetch = {
url = "github:alba4k/albafetch";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {nixpkgs, albafetch, ...}: {
nixosConfigurations.host = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
{
nixpkgs.overlays = [albafetch.overlays.default];
environment.systemPackages = [pkgs.albafetch];
}
];
};
};
}Using the overlay (builtins.fetchTarball):
{pkgs, ...}: {
nixpkgs.overlays = [(import (builtins.fetchTarball "https://github.com/alba4k/albafetch/master.tar.gz")).overlays.default];
environment.systemPackages = with pkgs; [
albafetch
];
}Building with nix can make compiling in some ways much easier, such as when compiling statically or cross compiling. A few convenience outputs are included:
nix build .#albafetch # regular, dynamically linked build
nix build .#albafetch-static # statically linked build (only available on linux)
nix build .#albafetch-arm # cross compiling from x86_64 to arm (only available on x86_64)On older macOS (~11 and lower) versions, albafetch likely won't build natively.
You can, however, install albafetch on those using the package on MacPorts
This can be easily done with the following
# port install albafetch
What if your OS is not included in the ones mentioned? In this case, you can either compile the source code yourself and install albafetch manually, or you can grab an executable from the latest release.
Please note that albafetch currently won't run on Windows (despite albafetch --logo windows being a thing), but I'm planning to eventually add support (sooner or later). Feel free to help :)
$ git clone https://github.com/alba4k/albafetch
$ cd albafetch
$ make
# make install
make install needs elevated privileges on Linux (e.g. sudo or a root shell) to write to /usr/bin, while /usr/local/bin can be accessed as a normal user on macOS.
$ git clone https://github.com/alba4k/albafetch
$ cd albafetch
$ meson setup build
$ meson compile -C build
$ meson install -C build
Meson will install the executable to /usr/local/bin, which you may or may not want (executables in this directory are ran instead of ones in /usr/bin).
Building with nix can make compiling in some ways much easier, such as when compiling statically or cross compiling. A few convenience outputs are included:
nix build .#albafetch # regular, dynamically linked build
nix build .#albafetch-static # statically linked build (only available on linux)
nix build .#albafetch-arm # cross compiling from x86_64 to arm (only available on x86_64)