kmscon: unstable-2018-09-07 -> 9.0.0

This commit is contained in:
Infinidoge 2022-06-23 01:47:52 -04:00
parent 30c3cc499d
commit 0bae8e87bb

View file

@ -1,31 +1,37 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, autoreconfHook , fetchpatch
, meson
, libtsm , libtsm
, systemd , systemd
, libxkbcommon , libxkbcommon
, libdrm , libdrm
, libGLU, libGL , libGLU
, libGL
, pango , pango
, pixman , pixman
, pkg-config , pkg-config
, docbook_xsl , docbook_xsl
, libxslt , libxslt
, mesa
, ninja
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "kmscon"; pname = "kmscon";
version = "unstable-2018-09-07"; version = "9.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Aetf"; owner = "Aetf";
repo = "kmscon"; repo = "kmscon";
rev = "01dd0a231e2125a40ceba5f59fd945ff29bf2cdc"; rev = "v${version}";
sha256 = "0q62kjsvy2iwy8adfiygx2bfwlh83rphgxbis95ycspqidg9py87"; sha256 = "sha256-8owyyzCrZVbWXcCR+RA+m0MOrdzW+efI+rIMWEVEZ1o=";
}; };
buildInputs = [ buildInputs = [
libGLU libGL libGLU
libGL
libdrm libdrm
libtsm libtsm
libxkbcommon libxkbcommon
@ -33,14 +39,28 @@ stdenv.mkDerivation rec {
pango pango
pixman pixman
systemd systemd
mesa
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook meson
ninja
docbook_xsl docbook_xsl
pkg-config pkg-config
]; ];
patches = [
(fetchpatch {
name = "0001-tests-fix-warnings.patch";
url = "https://github.com/Aetf/kmscon/commit/b65f4269b03de580923ab390bde795e7956b633f.patch";
sha256 = "sha256-ngflPwmNMM/2JzhV+hHiH3efQyoSULfqEywzWox9iAQ=";
})
];
# _FORTIFY_SOURCE requires compiling with optimization (-O)
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-O"
+ " -Wno-error=maybe-uninitialized"; # https://github.com/Aetf/kmscon/issues/49
configureFlags = [ configureFlags = [
"--enable-multi-seat" "--enable-multi-seat"
"--disable-debug" "--disable-debug"