nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 35 lines 862 B view raw
1{ stdenv, fetchurl, fetchpatch, autoreconfHook, xz }: 2 3stdenv.mkDerivation rec { 4 name = "libunwind-${version}"; 5 version = "1.2.1"; 6 7 src = fetchurl { 8 url = "mirror://savannah/libunwind/${name}.tar.gz"; 9 sha256 = "1jsslwkilwrsj959dc8b479qildawz67r8m4lzxm7glcwa8cngiz"; 10 }; 11 12 patches = [ 13 ./version-1.2.1.patch 14 ]; 15 16 nativeBuildInputs = [ autoreconfHook ]; 17 18 outputs = [ "out" "dev" ]; 19 20 propagatedBuildInputs = [ xz ]; 21 22 postInstall = '' 23 find $out -name \*.la | while read file; do 24 sed -i 's,-llzma,${xz.out}/lib/liblzma.la,' $file 25 done 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = http://www.nongnu.org/libunwind; 30 description = "A portable and efficient API to determine the call-chain of a program"; 31 maintainers = with maintainers; [ orivej ]; 32 platforms = platforms.linux; 33 license = licenses.mit; 34 }; 35}