I’m setting my laptop up to run NixOS 18.3 stable. It currently pulls in libinput 1.9.4. Since that version was released, they have made a number of changes to their hysteresis code, which I would like to have on my system.
I have tried a handful of wrong ways to upgrade the version, all of which have been rejected by nixos-rebuild. So what’s the correct way to upgrade libinput to, say, 1.11.1?
The sha256 hash (don’t trust the hash I put there!) can be calculated by running: nix-prefetch-url https://www.freedesktop.org/software/libinput/libinput-1.11.1.tar.xz
nix-prefetch-url will also output the nix store path of the downloaded file.
You may want to check the pgp signature on that file (https://www.freedesktop.org/software/libinput/libinput-1.11.1.tar.xz.sig).
Also note, that lots of heavy software has dependencies on libinput. Be prepared for your box to recompile Qt for example.
I would recommend just switching to nixos-unstable channel. For desktop
use, it is much more reliable since newer software will fix most of the
bugs you will encounter on release branch.
Thanks xaverdh. Looks like the string interpolating $ signs were stripped from your post, but I figured it out and nixos-rebuild test is busy recompiling things now.