{ doCheck ? true, lib, libGL, libxkbcommon, makeWrapper, naersk, pkg-config, xorg, ... }: naersk.buildPackage rec { name = "rustty"; src = ./.; buildInputs = [ # wayland graphics libGL libxkbcommon xorg.libXcursor xorg.libX11 ]; nativeBuildInputs = [ pkg-config makeWrapper ]; postInstall = '' wrapProgram "$out/bin/${meta.mainProgram}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}" ''; # enables test suite inherit doCheck; meta = { mainProgram = "rustty"; homepage = "https://mtgmonkey.net"; }; }