1: # Turns a fixed-output derivation (like fetchgit or fetchurl) into a normal 2: # derivation. This can be useful if we know its hash isn't going to work. 3: { lib }: 4: 5: drv: 6: lib.overrideDerivation drv (old: { 7: outputHash = null; 8: outputHashAlgo = null; 9: outputHashMode = null; 10: sha256 = null; 11: 12: # We're not fixed-output, so we need to bypass the sandbox 13: __noChroot = true; 14: })