Install package where git source is newer than release/nixOS pkg?

Probably a silly question but I can’t seem to find what I need from searching.

For my case, I have installed rofi-wayland-unwrapped which is version 1.7.5+wayland3 in NixOS pkgs, which is the same as github.

However, the package source on github is newer, and I would like to install that. Is there a simple way to do that with NixOS?

Use overrideAttrs with src (and version too if you’d like).
https://nixos.org/manual/nixpkgs/unstable/#sec-pkg-overrideAttrs

1 Like