Merge pull request #81200 from flokli/edid-generator

edid-generator: init at unstable-2018-03-15
This commit is contained in:
Florian Klink 2020-03-19 22:48:44 +01:00 committed by GitHub
commit d07af374c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ stdenv
, fetchFromGitHub
, dos2unix
, edid-decode
, hexdump
, zsh
, modelines ? [] # Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
}:
let
version = "unstable-2018-03-15";
in stdenv.mkDerivation {
pname = "edid-generator";
inherit version;
src = fetchFromGitHub {
owner = "akatrevorjay";
repo = "edid-generator";
rev = "31a6f80784d289d2faa8c4ca4788409c83b3ea14";
sha256 = "0j6wqzx5frca8b5i6812vvr5iwk7440fka70bmqn00k0vfhsc2x3";
};
nativeBuildInputs = [ dos2unix edid-decode hexdump zsh ];
postPatch = ''
patchShebangs modeline2edid
'';
configurePhase = (stdenv.lib.concatMapStringsSep "\n" (m: "echo \"${m}\" | ./modeline2edid -") modelines);
installPhase = ''
install -Dm 444 *.bin -t "$out/lib/firmware/edid"
'';
meta = {
description = "Hackerswork to generate an EDID blob from given Xorg Modelines";
homepage = "https://github.com/akatrevorjay/edid-generator";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.flokli ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -3009,6 +3009,8 @@ in
edid-decode = callPackage ../tools/misc/edid-decode { };
edid-generator = callPackage ../tools/misc/edid-generator { };
editres = callPackage ../tools/graphics/editres { };
edit = callPackage ../applications/editors/edit { };