Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 patchelf, 6}: 7stdenv.mkDerivation rec { 8 pname = "mlc"; 9 version = "3.9a"; 10 11 src = fetchurl { 12 url = "https://downloadmirror.intel.com/736634/mlc_v${version}.tgz"; 13 sha256 = "EDa5V56qCPQxgCu4eddYiWDrk7vkYS0jisnG004L+jQ="; 14 }; 15 16 sourceRoot = "Linux"; 17 18 installPhase = '' 19 install -Dm755 mlc $out/bin/mlc 20 ''; 21 22 nativeBuildInputs = [ patchelf ]; 23 24 fixupPhase = '' 25 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/mlc 26 ''; 27 28 meta = with lib; { 29 homepage = "https://software.intel.com/content/www/us/en/develop/articles/intelr-memory-latency-checker.html"; 30 description = "Intel Memory Latency Checker"; 31 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 32 license = licenses.unfree; 33 maintainers = with maintainers; [ basvandijk ]; 34 platforms = with platforms; linux; 35 mainProgram = "mlc"; 36 }; 37}