Comment by craftkiller

2 months ago

It's really easy to pull those handful of packages from an older version of nixpkgs. I had to do that when there was some buggy firmware in the latest (at the time) version of linux-firmware. You just:

1. Add a new input to your flake of nixpkgs pinned to a specific commit or branch. For example:

  nixpkgs-91fab2d.url = "github:NixOS/nixpkgs/91fab2d3e8ee06464f3c9896e84c97982b771fc3";

2. Add an overlay where you replace those packages with versions from the older nixpkgs. For example:

  (final: prev: {
    inherit (pkgs-91fab2d) firefox libreoffice;
  })

Thanks! I will write this down so I can try it out next time. I really want to get better at these little things but it can be tough sometimes without concrete examples like this.