anchor.diff:      sha256 = "1r3qpg3bhz37mgvp9chsaa3k0csby3vayfvz8ggsqz194af5i2w5";
     };
   
  -  patches = stdenv.lib.optional doCheck ./gpt-unicode-test-fix.patch;
  +  patches = stdenv.lib.optional doCheck ./gpt-unicode-test-fix.patch
  +    ++ stdenv.lib.optional stdenv.hostPlatform.isMusl
  +    (fetchpatch {
  +      url = "https://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch?id=9c5cd3c329a40ba4559cc1d8c7d17a9bf95c237b";
  +      sha256 = "117ypyiwvzym6pi8xmy16wa5z3sbpx7gh6haabs6kfb1x2894z7q";
  +    });
   
     postPatch = stdenv.lib.optionalString doCheck ''
       patchShebangs tests
  
positive.code: 
    # Tests were previously failing due to Hydra running builds as uid 0.
    # That should hopefully be fixed now.
    doCheck = true;
  
    preCheck =
      stdenv.lib.optionalString doCheck
  
negative.code: { stdenv, fetchurl, fetchpatch, devicemapper, libuuid, gettext, readline, perl, python2
  , utillinux, check, enableStatic ? false, hurd ? null }:
  
  stdenv.mkDerivation rec {
  