2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, hwdata
|
|
|
|
, edid-decode
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libdisplay-info";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.1.1";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "emersion";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ hwdata ];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tool/gen-search-table.py
|
2023-02-16 17:41:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "EDID and DisplayID library";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/emersion/libdisplay-info";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pedrohlc ];
|
|
|
|
};
|
|
|
|
}
|