11 pname = "spice-autorandr";
14 src = fetchFromGitHub {
16 repo = "spice-autorandr";
17 rev = "0f61dc921b638761ee106b5891384c6348820b26";
18 hash = "sha256-eBvzalWT3xI8+uNns0/ZyRes91ePpj0beKb8UBVqo0E=";
21 nativeBuildInputs = [ autoreconfHook pkg-config ];
22 buildInputs = [ libX11 libXrandr ];
34 description = "Automatically adjust the client window resolution in Linux KVM guests using the SPICE driver";
35 mainProgram = "spice-autorandr";
37 Some desktop environments update the display resolution automatically,
38 this package is only useful when running without a DE or with a DE that
39 does not update display resolution automatically.
41 This package relies on `spice-vdagent` running an updating the xrandr modes. Enable
42 `spice-vdagent` by adding `services.spice-autorandr.enable = true` to your `configuration.nix`.
44 homepage = "https://github.com/seife/spice-autorandr";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [
49 platforms = lib.platforms.linux;