depot/third_party/nixpkgs/pkgs/development/libraries/libdisplay-info/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

39 lines
853 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=";
};
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson pkg-config ninja edid-decode hwdata python3 ];
postPatch = ''
patchShebangs tool/gen-search-table.py
'';
meta = with lib; {
description = "EDID and DisplayID library";
mainProgram = "di-edid-decode";
homepage = "https://gitlab.freedesktop.org/emersion/libdisplay-info";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ pedrohlc ];
};
}