about summary refs log tree commit diff
path: root/pkgs/tools/misc/edid-decode/default.nix
blob: f6bcff31a00f0e0c79e9b53ee817d6d506e0751c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, stdenv
, fetchgit
, unstableGitUpdater
}:

stdenv.mkDerivation {
  pname = "edid-decode";
  version = "unstable-2024-04-02";

  outputs = [
    "out"
    "man"
  ];

  src = fetchgit {
    url = "git://linuxtv.org/edid-decode.git";
    rev = "3d635499e4aca3319f0796ba787213c981c5a770";
    hash = "sha256-bqzO39YM/3h9p37xaGJAw9xERgWOD+4yqO/XQiq/QqM=";
  };

  preBuild = ''
    export DESTDIR=$out
    export bindir=/bin
    export mandir=/share/man
  '';

  passthru.updateScript = unstableGitUpdater { };

  meta = with lib; {
    description = "EDID decoder and conformance tester";
    homepage = "https://git.linuxtv.org/edid-decode.git";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ Madouura ];
    platforms = platforms.all;
    mainProgram = "edid-decode";
  };
}