anchor.diff:  
     passthru.tests = callPackage ./samples.nix { };
   
  -  meta = with lib; {
  +  meta = {
       description = "Intel SGX SDK for Linux built with IPP Crypto Library";
       homepage = "https://github.com/intel/linux-sgx";
       maintainers = with maintainers; [ sbellem arturcygan veehaitch ];
  
positive.code: , writeShellScript
  , writeText
  }:
  
  stdenv.mkDerivation rec {
    pname = "sgx-sdk";
    version = "2.14";
  
    src = fetchFromGitHub {
      owner = "intel";
      repo = "linux-sgx";
      rev = "sgx_${version}";
      sha256 = "1cr2mkk459s270ng0yddgcryi0zc3dfmg9rmdrdh9mhy2mc1kx0g";
      fetchSubmodules = true;
    };
  
    postPatch = ''
      # https://github.com/intel/linux-sgx/pull/730
  
negative.code:   ];
  
    postBuild = ''
      patchShebangs linux/installer/bin/sgx_linux_x64_sdk_${version}.bin
    '';
  
    installPhase = ''
      runHook preInstall
  
      installDir=$TMPDIR
      ./linux/installer/bin/sgx_linux_x64_sdk_${version}.bin -prefix $installDir
      installDir=$installDir/sgxsdk
  
      header "Move files created by installer"
  