{
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
)
'';
};
};
}
Use the fork https://github.com/catppuccin/tmux/pull/89 into a patch.
Something like this: