Overlay for nix that provides stable and unstable version of telega.el emacs package with telega-server built with compatible tdlib version.
I no longer use nixos so I cannot maintain this and have disabled actions in this repository. If you want to use this then you can fork repository and enable github actions in it, it should continue to work in the future assuming dockerfile that is used here to obtain commit hash is not changed significantly enough for script to break.
emacsPackages.melpaPackages.telega
- latest version of telega with telega-server built with compatible tdlib versionemacsPackages.melpaStablePackages.telega
- stable version of telega with telega-server built with compatible tdlib versionemacsPackages.telega
- same asemacsPackages.melpaStablePackages.telega
{
# ...
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/ipvych/telega-overlay/archive/main.tar.gz;
}))
];
environment.systemPackages = with pkgs; [
((emacsPackagesFor emacs).emacsWithPackages (epkgs: [
# for unstable telega
epkgs.melpaPackages.telega
# for stable telega
# epkgs.telega
]))
];
# ...
}
Add telega overlay as input to flake.nix like so
{
# ...
telega-overlay = {
url = "github:ipvych/telega-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
# ...
}
Then in configuration you can use in like so
{
# ...
nixpkgs.overlays = [ inputs.telega-overlay.overlay ];
environment.systemPackages = with pkgs; [
((emacsPackagesFor emacs).emacsWithPackages (epkgs: [
# for unstable telega
epkgs.melpaPackages.telega
# for stable telega
# epkgs.telega
]))
];
# ...
}
CI job is automaticaly run every day that runs update
script in each
repo folder. This job retrives version hashes and data for stable and
unstable releases and writes them in approprite .json
files that are
then used by overlay.
Scipts for updating repos and general structure of repo were adapted from emacs-overlay repository.