This (🚀💥 hyper optimized) C program displays the animated ghost from the ghostty homepage in your terminal.
- Terminal size: at least 115x56
- C compiler (e.g., GCC, C99+)
Using with Nix
-
Clone the repository:
git clone https://github.com/themackabu/ghost.git cd ghost
-
Build the
ghost
package using Flakes:nix build .#ghost
This will build the
ghost
package and place the result in the./result
directory. -
Run the
ghost
binary:./result/bin/ghost
To include the ghost
package in your NixOS configuration, you can add it to your configuration.nix
file.
-
Add the Flake input to your
configuration.nix
:{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; ghost.url = "path:./path/to/your/ghost/repo"; }; outputs = { self, nixpkgs, flake-utils, ghost }: { nixosConfigurations = { hostname = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./hardware-configuration.nix { imports = [ ghost.nixosModules.default ]; environment.systemPackages = with pkgs; [ ghost.packages.x86_64-linux.ghost ]; } ]; }; }; }; }
-
Rebuild your NixOS system:
sudo nixos-rebuild switch --flake .#hostname
-
Install the
ghost
package into your profile directly from GitHub:nix profile install github:themackabu/ghost#ghost
-
Run the
ghost
binary:ghost