10 writeShellApplication,
17 # edids = linuxhw-edid-fetcher.override {
18 # displays.PG278Q_2014 = [ "PG278Q" "2560x1440" "2014" ];
21 # "${edids}/lib/firmware/edid/PG278Q_2014.bin";
22 stdenv.mkDerivation rec {
23 pname = "linuxhw-edid-fetcher";
24 version = "0-unstable-2025-01-06";
26 src = fetchFromGitHub {
29 rev = "cc83e52221a9a6d98632f00b54be64fd0bee0394";
30 hash = "sha256-qwTHQOEeFG7SOM2JG9mNpJEoPI8M7GHuwYPWWfU/ID4=";
33 fetch = lib.getExe (writeShellApplication {
34 name = "linuxhw-edid-fetch";
43 repo="''${repo:-"${src}"}"
44 ${builtins.readFile ./linuxhw-edid-fetch.sh}
48 configurePhase = lib.pipe displays [
51 "$fetch" ${lib.escapeShellArgs patterns} > "${name}.bin"
54 (builtins.concatStringsSep "\n")
59 ln -s "$fetch" "$out/bin/"
60 ${lib.optionalString (displays != { }) ''
61 install -D --mode=444 --target-directory="$out/lib/firmware/edid" *.bin
65 passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch=master" ]; };
68 description = "Fetcher for EDID binaries from Linux Hardware Project's EDID repository";
69 homepage = "https://github.com/linuxhw/EDID";
70 license = lib.licenses.cc-by-40;
71 maintainers = with lib.maintainers; [ nazarewk ];
72 platforms = lib.platforms.all;
73 mainProgram = "linuxhw-edid-fetch";