Overriding md5 in tex-live derived inconsolata.tar.gz in ancient (15.09) nixpkgs

Hello,

I’m on a quest to to hammer R into increased reproducibility,
and for that I need to build an older C ecosystem with even older
R versions.

Specifically, I’m trying to override R in nixpkgs 15.09 to version 3.1.1 (see r_ecosystem_track/flake.nix at 1dd7585a5c0e56a44190f489753b4e6babe89d01 · TyberiusPrime/r_ecosystem_track · GitHub for the reproducible example).,
and if I do so, I get a failure because inconsolata.tar.xz has a md5 mismatch.

hash mismatch in fixed-output derivation '/nix/store/gqgbh5dzf0c9qy8nqlil2rcb9l6y8mph-inconsolata.tar.xz':
  wanted: md5:02zz02684pspc63aqqkzgzy1dw
  got:    md5:5iqcgwj7c2jpggp4shi5jrzsj0

Now, the actual fetchurl that I need to replace is in a string that get’s passed to runCommand which passes it to mkDerivation’s buildCommand.

see nixpkgs/default.nix at 9c31c72cafe536e0c21238b2d47a23bfe7d1b033 · NixOS/nixpkgs · GitHub

Now I can access the texlive-inconsolata-1.05 derivation being created here as (builtins.elemAt pkgs.texlive.inconsolata.pkgs 0) - but I don’t know how to get to the fetchurl from that?

Thanks for your insights!
So long
Tyberius Prime

1 Like