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