storopoli / flakes

NixOS/MacOS Nix Minimalist-Hardened-Privacy-oriented Configs
MIT License
47 stars 5 forks source link

tmux: CPU in Catppuccin theme #37

Closed storopoli closed 5 months ago

storopoli commented 5 months ago

Use the fork https://github.com/catppuccin/tmux/pull/89 into a patch.

Something like this:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };

  outputs = { self, nixpkgs }: {
    # Replace `system` with your configuration's system if necessary, e.g. "x86_64-linux".
    packages.x86_64-linux.my-package = nixpkgs.legacyPackages.x86_64-linux.stdenv.mkDerivation rec {
      name = "my-package";

      # Replace `src` and `version` with the appropriate values for the package you are modifying
      src = nixpkgs.legacyPackages.x86_64-linux.my-package.src;
      version = nixpkgs.legacyPackages.x86_64-linux.my-package.version;

      patches = [
        # Path to your custom patch
        ./my-custom.patch
      ];

      # Ensure patch is included during the build process
      prePatch = ''
        patches+=(
           ${self.inputs.someInput.somePackage}/some-patch.patch
        )
      '';
    };
  };
}
storopoli commented 5 months ago

closed in favor of zellij #38