1 { lib, stdenv, makeWrapper, fetchFromGitHub, cctools }:
3 stdenv.mkDerivation rec {
4 pname = "macdylibbundler";
7 src = fetchFromGitHub {
9 repo = "macdylibbundler";
11 sha256 = "0j4ij48jf5izgymzxxaakf6vc50w9q0761yir6nfj1n6qlnrlidf";
14 nativeBuildInputs = [ makeWrapper ];
16 makeFlags = [ "PREFIX=$(out)" ];
19 wrapProgram $out/bin/dylibbundler \
20 --prefix PATH ":" "${cctools}/bin"
24 description = "Utility to ease bundling libraries into executables for OSX";
26 dylibbundler is a small command-line programs that aims to make bundling
27 .dylibs as easy as possible. It automatically determines which dylibs are
28 needed by your program, copies these libraries inside the app bundle, and
29 fixes both them and the executable to be ready for distribution... all
30 this with a single command on the teminal! It will also work if your
31 program uses plug-ins that have dependencies too.
33 homepage = "https://github.com/auriamg/macdylibbundler";
34 license = licenses.mit;
35 platforms = platforms.all;
36 maintainers = [ maintainers.nomeata ];