libexecinfo: fetch patches, add meta, maintain

This commit is contained in:
Will Dietz
2018-02-13 11:03:07 -06:00
parent 82dfab87fa
commit 7f3527d33f
4 changed files with 23 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "libexecinfo-${version}";
@@ -10,9 +10,21 @@ stdenv.mkDerivation rec {
};
patches = [
./10-execinfo.patch
./20-define-gnu-source.patch
./30-linux-makefile.patch
(fetchpatch {
name = "10-execinfo.patch";
url = https://git.alpinelinux.org/cgit/aports/plain/main/libexecinfo/10-execinfo.patch?id=730cdcef6901750f4029d4c3b8639ce02ee3ead1;
sha256 = "0lnphrad4vspyljnvmm62dyxj98vgp3wabj4w3vfzfph7j8piw7g";
})
(fetchpatch {
name = "20-define-gnu-source.patch";
url = https://git.alpinelinux.org/cgit/aports/plain/main/libexecinfo/20-define-gnu-source.patch?id=730cdcef6901750f4029d4c3b8639ce02ee3ead1;
sha256 = "1mp8mc639b0h2s69m5z6s2h3q3n1zl298j9j0plzj7f979j76302";
})
(fetchpatch {
name = "30-linux-makefile.patch";
url = https://git.alpinelinux.org/cgit/aports/plain/main/libexecinfo/30-linux-makefile.patch?id=730cdcef6901750f4029d4c3b8639ce02ee3ead1;
sha256 = "1jwjz22z5cjy5h2bfghn62yl9ar8jiqhdvbwrcfavv17ihbhwcaf";
})
];
patchFlags = "-p0";
@@ -22,4 +34,11 @@ stdenv.mkDerivation rec {
install -Dm755 libexecinfo.{a,so.1} -t $out/lib
ln -s $out/lib/libexecinfo.so{.1,}
'';
meta = with stdenv.lib; {
description = "Library for inspecting program's backtrace";
license = licenses.bsd2;
homepage = https://www.freshports.org/devel/libexecinfo;
maintainers = with maintainers; [ dtzWill ];
};
}