23 stdenv.mkDerivation rec {
27 src = fetchFromGitHub {
31 sha256 = "sha256-8owyyzCrZVbWXcCR+RA+m0MOrdzW+efI+rIMWEVEZ1o=";
37 buildPackages.stdenv.cc
62 name = "0001-tests-fix-warnings.patch";
63 url = "https://github.com/Aetf/kmscon/commit/b65f4269b03de580923ab390bde795e7956b633f.patch";
64 sha256 = "sha256-ngflPwmNMM/2JzhV+hHiH3efQyoSULfqEywzWox9iAQ=";
68 # _FORTIFY_SOURCE requires compiling with optimization (-O)
69 env.NIX_CFLAGS_COMPILE =
70 lib.optionalString stdenv.cc.isGNU "-O" + " -Wno-error=maybe-uninitialized"; # https://github.com/Aetf/kmscon/issues/49
75 "--enable-optimizations"
76 "--with-renderers=bbulk,gltex,pixman"
79 enableParallelBuilding = true;
82 description = "KMS/DRM based System Console";
83 mainProgram = "kmscon";
84 homepage = "https://www.freedesktop.org/wiki/Software/kmscon/";
85 license = licenses.mit;
86 maintainers = with maintainers; [ omasanori ];
87 platforms = platforms.linux;