anchor.diff:      done
     '';
   
  -  preFixup = ''
  -    find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
  -  '';
  -
     meta = {
       homepage = https://runc.io/;
       description = "A CLI tool for spawning and running containers according to the OCI specification";
  
positive.code: { stdenv, lib, fetchFromGitHub, removeReferencesTo, go-md2man
  , go, pkgconfig, libapparmor, apparmor-parser, libseccomp }:
  
  with lib;
  
  stdenv.mkDerivation rec {
    name = "runc-${version}";
    version = "1.0.0-rc6";
  
  
negative.code:     sha256 = "1jwacb8xnmx5fr86gximhbl9dlbdwj3rpf27hav9q1si86w5pb1j";
    };
  
    goPackagePath = "github.com/opencontainers/runc";
    outputs = [ "bin" "out" "man" ];
  
    hardeningDisable = ["fortify"];
  
    nativeBuildInputs = [ pkgconfig ];
    buildInputs = [ go-md2man libseccomp libapparmor apparmor-parser which ];
  
    makeFlags = ''BUILDTAGS+=seccomp BUILDTAGS+=apparmor'';
  
    buildPhase = ''
      cd go/src/${goPackagePath}
      patchShebangs .
      substituteInPlace libcontainer/apparmor/apparmor.go \
        --replace /sbin/apparmor_parser ${apparmor-parser}/bin/apparmor_parser
      make ${makeFlags} runc
    '';
  
    installPhase = ''
      install -Dm755 runc $bin/bin/runc
  
      # Include contributed man pages
      man/md2man-all.sh -q
  