chromium: replace update.nix with Python impl

update.nix was a huuuuge hack, abusing checksum collisions, etc., and
was extremely difficult to read and maintain, especially because
values from update.nix were also used in the derivations themselves!

I've replaced this with an implementation in Python, which I chose for
readability.  Rather than generating Nix, I chose to
generate JSON, since Python can do that in the standard library and
Nix can read it.

I also set update.py as an updateScript, so Chromium can now
automatically be updated!

Fixes: https://github.com/NixOS/nixpkgs/issues/89635
This commit is contained in:
Alyssa Ross
2020-09-05 11:20:13 +02:00
committed by Florian Klink
parent 5811b6c1cd
commit de69b705d2
8 changed files with 118 additions and 312 deletions
@@ -72,7 +72,7 @@ in stdenv.mkDerivation {
name = "google-chrome${suffix}-${version}";
src = chromium.upstream-info.binary;
src = chromium.chromeSrc;
nativeBuildInputs = [ patchelf makeWrapper ];
buildInputs = [