Trying to package something, I think a library is not getting loaded properly

I am trying to package ruler to use alongside windowchef, and I believe I am running into a problem with a library not getting loaded properly (I could be wrong, this is my first time trying to package something in nix).

This is my current ruler/default.nix file

let
  pkgs = import <nixpkgs> {};
in

with pkgs; 

stdenv.mkDerivation rec {
  pname = "wc-ruler";
  version = "0.1.2";

  src = fetchFromGitHub {
    owner  = "tudurom";
    repo   = "ruler";
    rev    = "v${version}";
    sha256 = "0gb3pz4dav6z9nlqw1z84x1aqibingv7hgqws17fgpw55z05kan3";
  };

  nativeBuildInputs = [ bison flex ];
  buildInputs = [ wmutils-libwm xorg.libxcb xorg.xcbutilwm xcb-util-cursor ];

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    homepage = "https://github.com/tudurom/ruler";
    description = "ruler is a program used for creating rules like in some window managers.";
    maintainers = with maintainers; [ "2-n" ];
    license = licenses.isc;
    platforms = platforms.linux;
  }; 
}

And here is the full log file containing the error (posted to pastebin as it is longer).

I am not sure but from my best guess I think that libwm is not properly being linked based on wm_reg_window_event being part of libwm:

/build/source/ruler.c:685:(.text+0x10ee): undefined reference to `wm_reg_window_event'
/nix/store/adakqsdbifx7d688z4874ap17clarhfn-binutils-2.41/bin/ld: /build/cc9IlnK1.o: in function `handle_events':
/build/source/ruler.c:711:(.text+0x1445): undefined reference to `wm_reg_window_event'
/nix/store/adakqsdbifx7d688z4874ap17clarhfn-binutils-2.41/bin/ld: /build/source/ruler.c:747:(.text+0x1686): undefined reference to `wm_reg_window_event'

Any help/pointing me in the right direction would be greatly appreciated.

Okay, I figured out the problem. The libwm package that is in nixpkgs is quite out of date, I used overrideAttrs to update the version to the current git revision and that let it build. The function that ruler was attempting to call was a feature added later on. Consider this solved.