1{ stdenv, fetchurl, cmake, libx86 }:
2
3stdenv.mkDerivation rec {
4 name = "read-edid-${version}";
5 version = "3.0.2";
6
7 src = fetchurl {
8 url = "http://www.polypux.org/projects/read-edid/${name}.tar.gz";
9 sha256 = "0vqqmwsgh2gchw7qmpqk6idgzcm5rqf2fab84y7gk42v1x2diin7";
10 };
11
12 buildInputs = [ cmake libx86 ];
13
14 patchPhase = ''
15 substituteInPlace CMakeLists.txt --replace 'COPYING' 'LICENSE'
16 '';
17
18 meta = with stdenv.lib; {
19 description = "Tool for reading and parsing EDID data from monitors";
20 homepage = http://www.polypux.org/projects/read-edid/;
21 license = licenses.bsd2; # Quoted: "This is an unofficial license. Let's call it BSD-like."
22 maintainers = [ maintainers.dezgeg ];
23 platforms = platforms.linux;
24 };
25}