Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 59 lines 1.1 kB view raw
1{ lib, stdenv 2, fetchurl 3, autoreconfHook 4, elfutils 5, libxml2 6, pkg-config 7, strace 8, python3 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libabigail"; 13 version = "2.1"; 14 15 outputs = [ "bin" "out" "dev" ]; 16 17 src = fetchurl { 18 url = "https://mirrors.kernel.org/sourceware/${pname}/${pname}-${version}.tar.gz"; 19 sha256 = "sha256-SmKX1B0V0ZNiVhFxFr1hKW5rm+4j1UoMr40/WrjdzEw="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 strace 26 ]; 27 28 buildInputs = [ 29 elfutils 30 libxml2 31 ]; 32 33 nativeCheckInputs = [ 34 python3 35 ]; 36 37 configureFlags = [ 38 "--enable-bash-completion=yes" 39 "--enable-cxx11=yes" 40 ]; 41 42 enableParallelBuilding = true; 43 44 doCheck = true; 45 46 preCheck = '' 47 # runtestdiffpkg needs cache directory 48 export XDG_CACHE_HOME="$TEMPDIR" 49 patchShebangs tests/ 50 ''; 51 52 meta = with lib; { 53 description = "ABI Generic Analysis and Instrumentation Library"; 54 homepage = "https://sourceware.org/libabigail/"; 55 license = licenses.asl20-llvm; 56 maintainers = [ ]; 57 platforms = platforms.linux; 58 }; 59}