nixpkgs/pkgs/os-specific/darwin/insert_dylib/default.nix
Matthew Bauer 0534ceac81 xcbuild: move setup hook to xcbuildHook
Not every package that needs xcbuild will want to use its build phase.
I have moved the xcbuild setup hook to the new attribute xcbuildHook.
This means that dontUseXcbuild is no longer needed. If you just need
to call xcbuild on its own you can just refer to xcbuild.
2018-07-09 17:13:58 -04:00

20 lines
569 B
Nix

{ stdenv, fetchFromGitHub, xcbuildHook }:
stdenv.mkDerivation
{ name = "insert_dylib-2016.08.28";
src = fetchFromGitHub
{ owner = "Tyilo";
repo = "insert_dylib";
rev = "c8beef66a08688c2feeee2c9b6eaf1061c2e67a9";
sha256 = "0az38y06pvvy9jf2wnzdwp9mp98lj6nr0ldv0cs1df5p9x2qvbya";
};
nativeBuildInputs = [ xcbuildHook ];
installPhase =
''
prog=$(find . -type f -name insert_dylib)
mkdir -p $out/bin
install -m755 $prog $out/bin
'';
meta.platforms = stdenv.lib.platforms.darwin;
}