nixpkgs/pkgs/by-name/li/libdisplay-info/package.nix

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

48 lines
890 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitLab,
meson,
pkg-config,
ninja,
python3,
hwdata,
edid-decode,
}:
stdenv.mkDerivation rec {
pname = "libdisplay-info";
2024-06-21 03:36:53 +00:00
version = "0.2.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "emersion";
repo = pname;
rev = version;
2024-06-21 03:36:53 +00:00
sha256 = "sha256-6xmWBrPHghjok43eIDGeshpUEQTuwWLXNHg7CnBUt3Q=";
};
2023-04-23 10:42:06 +00:00
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
pkg-config
ninja
edid-decode
hwdata
python3
];
2023-02-17 17:11:55 +00:00
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 ];
};
}