nixpkgs/pkgs/os-specific/darwin/insert_dylib/default.nix

20 lines
555 B
Nix
Raw Normal View History

2017-12-09 19:37:24 +00:00
{ stdenv, fetchFromGitHub, xcbuild }:
stdenv.mkDerivation
{ name = "insert_dylib-2016.08.28";
src = fetchFromGitHub
{ owner = "Tyilo";
repo = "insert_dylib";
rev = "c8beef66a08688c2feeee2c9b6eaf1061c2e67a9";
sha256 = "0az38y06pvvy9jf2wnzdwp9mp98lj6nr0ldv0cs1df5p9x2qvbya";
};
buildInputs = [ xcbuild ];
installPhase =
''
prog=$(find . -type f -name insert_dylib)
mkdir -p $out/bin
install -m755 $prog $out/bin
'';
2017-12-11 01:22:36 +00:00
meta.platforms = stdenv.lib.platforms.darwin;
2017-12-09 19:37:24 +00:00
}