Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 39 lines 1.2 kB view raw
1{ lib, stdenv, makeWrapper, fetchFromGitHub, cctools }: 2 3stdenv.mkDerivation rec { 4 pname = "macdylibbundler"; 5 version = "1.0.4"; 6 7 src = fetchFromGitHub { 8 owner = "auriamg"; 9 repo = "macdylibbundler"; 10 rev = version; 11 sha256 = "0j4ij48jf5izgymzxxaakf6vc50w9q0761yir6nfj1n6qlnrlidf"; 12 }; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 16 makeFlags = [ "PREFIX=$(out)" ]; 17 18 postInstall = '' 19 wrapProgram $out/bin/dylibbundler \ 20 --prefix PATH ":" "${cctools}/bin" 21 ''; 22 23 meta = with lib; { 24 description = "Utility to ease bundling libraries into executables for OSX"; 25 longDescription = '' 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. 32 ''; 33 homepage = "https://github.com/auriamg/macdylibbundler"; 34 license = licenses.mit; 35 platforms = platforms.all; 36 maintainers = [ maintainers.nomeata ]; 37 38 }; 39}