Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenv
3, fetchFromGitLab
4, meson
5, pkg-config
6, ninja
7, python3
8, hwdata
9, edid-decode
10}:
11
12stdenv.mkDerivation rec {
13 pname = "libdisplay-info";
14 version = "0.1.1";
15
16 src = fetchFromGitLab {
17 domain = "gitlab.freedesktop.org";
18 owner = "emersion";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-7t1CoLus3rPba9paapM7+H3qpdsw7FlzJsSHFwM/2Lk=";
22 };
23
24 depsBuildBuild = [ pkg-config ];
25 nativeBuildInputs = [ meson pkg-config ninja edid-decode hwdata python3 ];
26
27 postPatch = ''
28 patchShebangs tool/gen-search-table.py
29 '';
30
31 meta = with lib; {
32 description = "EDID and DisplayID library";
33 homepage = "https://gitlab.freedesktop.org/emersion/libdisplay-info";
34 license = licenses.mit;
35 platforms = platforms.linux;
36 maintainers = with maintainers; [ pedrohlc ];
37 };
38}