Files
nixpkgs/pkgs/by-name/re/read-edid/package.nix
Marcin Serwin 59364fb99a maintainers: drop dezgeg
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-22 12:43:51 +01:00

40 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchurl,
cmake,
libx86,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "read-edid";
version = "3.0.2";
src = fetchurl {
url = "http://www.polypux.org/projects/read-edid/read-edid-${finalAttrs.version}.tar.gz";
sha256 = "0vqqmwsgh2gchw7qmpqk6idgzcm5rqf2fab84y7gk42v1x2diin7";
};
patches = [ ./fno-common.patch ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail 'COPYING' 'LICENSE'
# cmake 4 compatibility, upstream is dead
substituteInPlace CMakeLists.txt --replace-fail "cmake_minimum_required (VERSION 2.6)" "cmake_minimum_required (VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.hostPlatform.isx86 libx86;
cmakeFlags = [ "-DCLASSICBUILD=${if stdenv.hostPlatform.isx86 then "ON" else "OFF"}" ];
meta = {
description = "Tool for reading and parsing EDID data from monitors";
homepage = "http://www.polypux.org/projects/read-edid/";
license = lib.licenses.bsd2; # Quoted: "This is an unofficial license. Let's call it BSD-like."
maintainers = [ ];
platforms = lib.platforms.linux;
};
})