edid-generator: actually generate binaries
the package was not generating *.bin files as the `make` call was missing
This commit is contained in:
parent
f634d427b0
commit
c4cd43a209
|
@ -1,12 +1,24 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, dos2unix
|
, dos2unix
|
||||||
, edid-decode
|
, edid-decode
|
||||||
, hexdump
|
, hexdump
|
||||||
, zsh
|
, zsh
|
||||||
, modelines ? [ ] # Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
|
, modelines ? [ ] # Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
|
||||||
|
, clean ? false # should it skip all, but explicitly listed modelines?
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# (edid-generator.override {
|
||||||
|
# clean = true;
|
||||||
|
# modelines = [
|
||||||
|
# ''Modeline "PG278Q_2560x1440" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 -hsync +vsync''
|
||||||
|
# ''Modeline "PG278Q_2560x1440@120" 497.75 2560 2608 2640 2720 1440 1443 1448 1525 +hsync -vsync''
|
||||||
|
# ''Modeline "U2711_2560x1440" 241.50 2560 2600 2632 2720 1440 1443 1448 1481 -hsync +vsync''
|
||||||
|
# ];
|
||||||
|
# })
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "edid-generator";
|
pname = "edid-generator";
|
||||||
version = "unstable-2018-03-15";
|
version = "unstable-2018-03-15";
|
||||||
|
@ -22,9 +34,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs modeline2edid
|
patchShebangs modeline2edid
|
||||||
|
# allows makefile to discover prefixes and suffixes in addition to just `[0-9]*x[0-9]*.S`
|
||||||
|
awk -i inplace '/^SOURCES\t/ { print "SOURCES\t:= $(wildcard *[0-9]*x[0-9]**.S)"; next; }; { print; }' Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = (lib.concatMapStringsSep "\n" (m: "echo \"${m}\" | ./modeline2edid -") modelines);
|
configurePhase = ''
|
||||||
|
test '${toString clean}' != 1 || rm *x*.S
|
||||||
|
${lib.concatMapStringsSep "\n" (m: "./modeline2edid - <<<'${m}'") modelines}
|
||||||
|
make clean all
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm 444 *.bin -t "$out/lib/firmware/edid"
|
install -Dm 444 *.bin -t "$out/lib/firmware/edid"
|
||||||
|
@ -34,7 +52,7 @@ stdenv.mkDerivation rec {
|
||||||
description = "Hackerswork to generate an EDID blob from given Xorg Modelines";
|
description = "Hackerswork to generate an EDID blob from given Xorg Modelines";
|
||||||
homepage = "https://github.com/akatrevorjay/edid-generator";
|
homepage = "https://github.com/akatrevorjay/edid-generator";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [ lib.maintainers.flokli ];
|
maintainers = with lib.maintainers; [ flokli nazarewk ];
|
||||||
platforms = lib.platforms.all;
|
platforms = lib.platforms.all;
|
||||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/edid-generator.x86_64-darwin
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/edid-generator.x86_64-darwin
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue