That looks like it should work, but it again does nothing when I rebuild. “No version or selection state changes.”
I’m doing all of this within Home Manager (installed as a module), which is the only other factor that might be an issue, but I’ve used overlays on other packages within Home Manager before and had no issue.
This is the latest version I’m trying, which gets imported by home.nix
:
wpaperd.nix
{ pkgs, lib, ... }: {
nixpkgs.overlays = [
(final: prev: {
wpaperd = prev.wpaperd.overrideAttrs (old: rec {
src = prev.fetchFromGitHub {
owner = "danyspin97";
repo = "wpaperd";
rev = "b4d956821c6b365adeb5bb4fd0d555a3bb90193d";
hash = "sha256-AE2h6kkpeDlL9u7MODTbgot9gwH9VwUl884xca7Rx8w=";
};
cargoDeps = old.cargoDeps.overrideAttrs {
inherit src;
outputHash = lib.fakeHash;
};
});
})
];
home.packages = [ pkgs.wpaperd ];
}