From 6d7ceedaf9a558bd39b7e53840d96d6db16f9971 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 9 Dec 2017 14:37:24 -0500 Subject: [PATCH] Add insert_dylib darwin package. --- .../darwin/insert_dylib/default.nix | 18 ++++++++++++++++++ pkgs/top-level/darwin-packages.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/os-specific/darwin/insert_dylib/default.nix diff --git a/pkgs/os-specific/darwin/insert_dylib/default.nix b/pkgs/os-specific/darwin/insert_dylib/default.nix new file mode 100644 index 000000000000..293572655b98 --- /dev/null +++ b/pkgs/os-specific/darwin/insert_dylib/default.nix @@ -0,0 +1,18 @@ +{ 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 + ''; + } diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 32d540a8f967..30f50c56db74 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -31,6 +31,8 @@ in inherit (darwin) opencflite; }; + insert_dylib = callPackage ../os-specific/darwin/insert_dylib { }; + ios-cross = callPackage ../os-specific/darwin/ios-cross { inherit (darwin) binutils; };