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
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
cmake,
|
|
pkg-config,
|
|
libdrm,
|
|
fmt,
|
|
libevdev,
|
|
withPython ? false,
|
|
python3Packages,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "kmsxx";
|
|
version = "2021-07-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomba";
|
|
repo = "kmsxx";
|
|
fetchSubmodules = true;
|
|
rev = "54f591ec0de61dd192baf781c9b2ec87d5b461f7";
|
|
hash = "sha256-j+20WY4a2iTKZnYjXhxbNnZZ53K3dHpDMTp+ZulS+7c=";
|
|
};
|
|
|
|
# Didn't detect pybind11 without cmake
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
]
|
|
++ lib.optionals withPython [ cmake ];
|
|
buildInputs = [
|
|
libdrm
|
|
fmt
|
|
libevdev
|
|
]
|
|
++ lib.optionals withPython (
|
|
with python3Packages;
|
|
[
|
|
python
|
|
pybind11
|
|
]
|
|
);
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
mesonFlags = lib.optional (!withPython) "-Dpykms=disabled";
|
|
|
|
meta = with lib; {
|
|
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
|
homepage = "https://github.com/tomba/kmsxx";
|
|
license = licenses.mpl20;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|