Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "insert-dylib"; 9 version = "0-unstable-2016-08-28"; 10 11 src = fetchFromGitHub { 12 owner = "Tyilo"; 13 repo = "insert_dylib"; 14 rev = "c8beef66a08688c2feeee2c9b6eaf1061c2e67a9"; 15 hash = "sha256-yq+NRU+3uBY0A7tRkK2RFKVb0+XtWy6cTH7va4BH4ys="; 16 }; 17 18 buildPhase = '' 19 runHook preBuild 20 21 mkdir -p Products/Release 22 $CC -o Products/Release/insert_dylib insert_dylib/main.c 23 24 runHook postBuild 25 ''; 26 27 installPhase = '' 28 runHook preInstall 29 30 install -Dm755 Products/Release/insert_dylib -t $out/bin 31 32 runHook postInstall 33 ''; 34 35 meta = { 36 description = "Command line utility for inserting a dylib load command into a Mach-O binary"; 37 homepage = "https://github.com/tyilo/insert_dylib"; 38 license = lib.licenses.unfree; # no license specified 39 mainProgram = "insert_dylib"; 40 maintainers = with lib.maintainers; [ wegank ]; 41 platforms = lib.platforms.darwin; 42 }; 43}