vifm: 0.13 -> 0.14 (#380559)
[NixPkgs.git] / pkgs / by-name / ma / macdylibbundler / package.nix
blob3aa0b704783be88182c95401f157d51eba596bcc
2   lib,
3   stdenv,
4   makeWrapper,
5   fetchFromGitHub,
6   cctools,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "macdylibbundler";
11   version = "1.0.4";
13   src = fetchFromGitHub {
14     owner = "auriamg";
15     repo = "macdylibbundler";
16     rev = version;
17     sha256 = "0j4ij48jf5izgymzxxaakf6vc50w9q0761yir6nfj1n6qlnrlidf";
18   };
20   nativeBuildInputs = [ makeWrapper ];
22   makeFlags = [ "PREFIX=$(out)" ];
24   postInstall = ''
25     wrapProgram $out/bin/dylibbundler \
26       --prefix PATH ":" "${cctools}/bin"
27   '';
29   meta = with lib; {
30     description = "Utility to ease bundling libraries into executables for OSX";
31     longDescription = ''
32       dylibbundler is a small command-line programs that aims to make bundling
33       .dylibs as easy as possible. It automatically determines which dylibs are
34       needed by your program, copies these libraries inside the app bundle, and
35       fixes both them and the executable to be ready for distribution... all
36       this with a single command on the teminal! It will also work if your
37       program uses plug-ins that have dependencies too.
38     '';
39     homepage = "https://github.com/auriamg/macdylibbundler";
40     license = licenses.mit;
41     platforms = platforms.all;
42     maintainers = [ maintainers.nomeata ];
44   };