11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
16 owner = "antonioginer";
18 tag = "v${finalAttrs.version}";
19 hash = "sha256-/21RcpumWYNBPck7gpH6krwC3Thz/rKDPgeJblN2BDA=";
36 substituteInPlace ./custom_video_xrandr.cpp \
37 --replace-fail libX11.so ${xorg.libX11}/lib/libX11.so \
38 --replace-fail libXrandr.so ${xorg.libXrandr}/lib/libXrandr.so
40 substituteInPlace ./custom_video_drmkms.cpp \
41 --replace-fail libdrm.so ${libdrm}/lib/libdrm.so \
51 install -Dm755 switchres $out/bin/switchres
55 description = "Modeline generation engine for emulation";
56 homepage = "https://github.com/antonioginer/switchres";
57 changelog = "https://github.com/antonioginer/switchres/releases/tag/v${finalAttrs.version}";
58 license = lib.licenses.gpl2Only;
59 mainProgram = "switchres";
60 maintainers = with lib.maintainers; [ bot-wxt1221 ];
61 platforms = lib.platforms.linux;