nixpkgs/pkgs/development/libraries/libexecinfo/default.nix
Will Dietz 49b7e4337f libexecinfo: init at 1.1, patches from Alpine
Not sure if ALLVM should use this, but might be good
to have it on hand just-in-case :).

Maybe part of libnone?
2018-02-13 09:44:48 -06:00

26 lines
590 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libexecinfo-${version}";
version = "1.1";
src = fetchurl {
url = "http://distcache.freebsd.org/local-distfiles/itetcu/${name}.tar.bz2";
sha256 = "07wvlpc1jk1sj4k5w53ml6wagh0zm9kv2l1jngv8xb7xww9ik8n9";
};
patches = [
./10-execinfo.patch
./20-define-gnu-source.patch
./30-linux-makefile.patch
];
patchFlags = "-p0";
installPhase = ''
install -Dm644 execinfo.h stacktraverse.h -t $out/include
install -Dm755 libexecinfo.{a,so.1} -t $out/lib
ln -s $out/lib/libexecinfo.so{.1,}
'';
}