2022-02-21 08:47:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab
|
2021-07-03 03:11:41 +00:00
|
|
|
, meson, pkg-config, ninja
|
|
|
|
, libdrm
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libliftoff";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.4.1";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
2021-07-03 03:11:41 +00:00
|
|
|
owner = "emersion";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
sha256 = "sha256-NPwhsd6IOQ0XxNQQNdaaM4kmwoLftokV86WYhoa5csY=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson pkg-config ninja ];
|
|
|
|
|
|
|
|
buildInputs = [ libdrm ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight KMS plane library";
|
2021-07-03 03:11:41 +00:00
|
|
|
longDescription = ''
|
|
|
|
libliftoff eases the use of KMS planes from userspace without standing in
|
|
|
|
your way. Users create "virtual planes" called layers, set KMS properties
|
|
|
|
on them, and libliftoff will pick planes for these layers if possible.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
changelog = "https://github.com/emersion/libliftoff/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ primeos Scrumplex ];
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
}
|