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