Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{
|
|
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;
|
|
};
|
|
}
|