nixpkgs/pkgs/development/libraries/libdisplay-info/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
817 B
Nix
Raw Normal View History

{ 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=";
};
2023-04-23 12:42:06 +02:00
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson pkg-config ninja edid-decode hwdata python3 ];
2023-02-17 18:11:55 +01:00
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 ];
};
}