Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
meson,
libtsm,
systemdLibs,
libxkbcommon,
libdrm,
libGLU,
libGL,
pango,
pixman,
pkg-config,
docbook_xsl,
libxslt,
libgbm,
ninja,
check,
buildPackages,
}:
stdenv.mkDerivation {
pname = "kmscon";
version = "9.0.0-unstable-2025-01-09";
src = fetchFromGitHub {
owner = "Aetf";
repo = "kmscon";
rev = "a81941f4464e6f9cee75bfb8a1db88c253ede33d";
sha256 = "sha256-l7Prt7CsYi4VCnp9xktvqqNT+4djSdO2GvP1JdxhNSI=";
};
strictDeps = true;
depsBuildBuild = [
buildPackages.stdenv.cc
];
buildInputs = [
libGLU
libGL
libdrm
libtsm
libxkbcommon
pango
pixman
systemdLibs
libgbm
check
];
nativeBuildInputs = [
meson
ninja
docbook_xsl
pkg-config
libxslt # xsltproc
];
env.NIX_CFLAGS_COMPILE =
lib.optionalString stdenv.cc.isGNU "-O "
+ "-Wno-error=maybe-uninitialized -Wno-error=unused-result -Wno-error=implicit-function-declaration";
enableParallelBuilding = true;
patches = [
./sandbox.patch # Generate system units where they should be (nix store) instead of /etc/systemd/system
];
meta = with lib; {
description = "KMS/DRM based System Console";
mainProgram = "kmscon";
homepage = "https://www.freedesktop.org/wiki/Software/kmscon/";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.linux;
};
}