forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ma / macdylibbundler / package.nix
blob504b79c50048df00e126550597ff612aef6c9209
1 { lib, stdenv, makeWrapper, fetchFromGitHub, cctools }:
3 stdenv.mkDerivation rec {
4   pname = "macdylibbundler";
5   version = "1.0.4";
7   src = fetchFromGitHub {
8     owner = "auriamg";
9     repo = "macdylibbundler";
10     rev = version;
11     sha256 = "0j4ij48jf5izgymzxxaakf6vc50w9q0761yir6nfj1n6qlnrlidf";
12   };
14   nativeBuildInputs = [ makeWrapper ];
16   makeFlags = [ "PREFIX=$(out)" ];
18   postInstall = ''
19     wrapProgram $out/bin/dylibbundler \
20       --prefix PATH ":" "${cctools}/bin"
21   '';
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 ];
38   };