dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
39 lines
804 B
Nix
39 lines
804 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, meson
|
|
, pkg-config
|
|
, ninja
|
|
, python3
|
|
, hwdata
|
|
, edid-decode
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdisplay-info";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "emersion";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ];
|
|
|
|
buildInputs = [ hwdata ];
|
|
|
|
postPatch = ''
|
|
patchShebangs tool/gen-search-table.py
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|