nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.13k stars 1.84k forks source link

How to install in parallel both stable and nightly kitty program? #6071

Open sheeeng opened 1 week ago

sheeeng commented 1 week ago

How to install latest nightly kitty program?

Also, is it possible to install in parallel both stable and nightly kitty programs?

https://sw.kovidgoyal.net/kitty/binary/#customizing-the-installation

stelcodes commented 5 hours ago

Something like this should work if the build steps haven't changed:

{
  nixpkgs.overlays = [
    (self: super: {
      kitty-nightly = super.kitty.overrideAttrs (previousAttrs: {
        src = super.fetchFromGitHub {
          owner = "kovidgoyal";
          repo = "kitty";
          rev = "<rev>";
          hash = "<hash>";
        };
      });
    })
  ];
}