anchor.diff:  , libselinux
   , go-md2man
   }:
  -
  -with stdenv.lib;
   
   let
     version = "0.2.0";
  
positive.code: 
    outputs = [ "bin" "man" "out" ];
  
    excludedPackages = "integration";
  
    nativeBuildInputs = [ pkg-config (lib.getBin go-md2man) ];
    buildInputs = [ gpgme ] ++ lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs libselinux ];
  
    buildFlagsArray = ''
      -ldflags=
      -X github.com/containers/skopeo/vendor/github.com/containers/image/v5/signature.systemDefaultPolicyPath=${defaultPolicyFile}
      -X github.com/containers/skopeo/vendor/github.com/containers/image/v5/internal/tmpdir.unixTempDirForBigFiles=/tmp
    '';
  
    preBuild = ''
      export CGO_CFLAGS="$CFLAGS"
      export CGO_LDFLAGS="$LDFLAGS"
    '';
  
    postBuild = ''
  
negative.code: 
    goPackagePath = "github.com/containers/skopeo";
  
    vendorPath = "${goPackagePath}/vendor/github.com/containers/image/v5";
  
  in
  buildGoPackage {
    pname = "skopeo";
  