Sometimes the stable channel doesn’t have a package that’s up to date and I’d like to use a newer one until the channel catches up or surpasses it.
Right now, I have to manually keep that in check after I do a nixos-rebuild switch --upgrade
by opening the program and periodically checking the version. Of course this isn’t maintainable for a larger set of packages, so I’m wondering if somebody has already solved this.
Example
{ pkgs, lib, ...}:
let
unstable-pkgs = import <nixos-unstable> {};
master-pkgs = import ( pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "master";
sha256 = "sha256-cl4W4evuqbwH4LYpeS1+IPg9dJENW06PU3NAlFkB8Es=";
}) {};
in {
environment.systemPackages = with pkgs; [
rocketchat-desktop
unstable-pkgs.element-desktop
master-pkgs.signal-desktop
];
}
signal-desktop
is 6.5.1 in the pinned master-pkgs
and 6.3.0
in pkgs
. I have to manually check the version number and remove the pin once the version number changes. This isn’t the only pinned package of course…