686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
41 lines
976 B
Nix
41 lines
976 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, meson
|
|
, pkg-config
|
|
, ninja
|
|
, python3
|
|
, hwdata
|
|
, edid-decode
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdisplay-info";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "emersion";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-jfi7RpEtyQicW0WWhrQg28Fta60YWxTbpbmPHmXxDhw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ];
|
|
|
|
buildInputs = [ hwdata ];
|
|
|
|
prePatch = ''
|
|
substituteInPlace meson.build \
|
|
--replace "find_program('tool/gen-search-table.py')" "find_program('python3')" \
|
|
--replace "gen_search_table," "gen_search_table, '$src/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 ];
|
|
};
|
|
}
|