Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #47408 from bhipple/add/abi-tools

abi-compliance-checker: init at 2.3

authored by

Matthew Bauer and committed by
GitHub
4c1b22b1 e080bb6a

+91 -2
+26
pkgs/development/tools/misc/abi-compliance-checker/default.nix
··· 1 + { stdenv, fetchFromGitHub, ctags, perl, binutils, abi-dumper }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "abi-compliance-checker-${version}"; 5 + version = "2.3"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "lvc"; 9 + repo = "abi-compliance-checker"; 10 + rev = version; 11 + sha256 = "1f1f9j2nf9j83sfl2ljadch99v6ha8rq8xm7ax5akc05hjpyckij"; 12 + }; 13 + 14 + buildInputs = [ binutils ctags perl ]; 15 + propagatedBuildInputs = [ abi-dumper ]; 16 + 17 + makeFlags = [ "prefix=$(out)" ]; 18 + 19 + meta = with stdenv.lib; { 20 + homepage = https://lvc.github.io/abi-compliance-checker; 21 + description = "A tool for checking backward API/ABI compatibility of a C/C++ library"; 22 + license = licenses.lgpl21; 23 + maintainers = [ maintainers.bhipple ]; 24 + platforms = platforms.all; 25 + }; 26 + }
+33
pkgs/development/tools/misc/abi-dumper/default.nix
··· 1 + { stdenv, fetchFromGitHub, ctags, perl, elfutils, vtable-dumper }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "abi-dumper-${version}"; 5 + version = "1.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "lvc"; 9 + repo = "abi-dumper"; 10 + rev = version; 11 + sha256 = "1byhw132aj7a5a5zh5s3pnjlrhdk4cz6xd5irp1y08jl980qba5j"; 12 + }; 13 + 14 + patchPhase = '' 15 + substituteInPlace abi-dumper.pl \ 16 + --replace eu-readelf ${elfutils}/bin/eu-readelf \ 17 + --replace vtable-dumper ${vtable-dumper}/bin/vtable-dumper \ 18 + --replace '"ctags"' '"${ctags}/bin/ctags"' 19 + ''; 20 + 21 + buildInputs = [ elfutils ctags perl vtable-dumper ]; 22 + 23 + preBuild = "mkdir -p $out"; 24 + makeFlags = [ "prefix=$(out)" ]; 25 + 26 + meta = with stdenv.lib; { 27 + homepage = https://github.com/lvc/abi-dumper; 28 + description = "Dump ABI of an ELF object containing DWARF debug info"; 29 + license = licenses.lgpl21; 30 + maintainers = [ maintainers.bhipple ]; 31 + platforms = platforms.all; 32 + }; 33 + }
+24
pkgs/development/tools/misc/vtable-dumper/default.nix
··· 1 + { stdenv, fetchFromGitHub, libelf }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "vtable-dumper-${version}"; 5 + version = "1.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "lvc"; 9 + repo = "vtable-dumper"; 10 + rev = version; 11 + sha256 = "0sl7lnjr2l4c2f7qaazvpwpzsp4gckkvccfam88wcq9f7j9xxbyp"; 12 + }; 13 + 14 + buildInputs = [ libelf ]; 15 + makeFlags = [ "prefix=$(out)" ]; 16 + 17 + meta = with stdenv.lib; { 18 + homepage = https://github.com/lvc/vtable-dumper; 19 + description = "A tool to list content of virtual tables in a C++ shared library"; 20 + license = licenses.lgpl21; 21 + maintainers = [ maintainers.bhipple ]; 22 + platforms = platforms.all; 23 + }; 24 + }
+8 -2
pkgs/top-level/all-packages.nix
··· 8003 8003 8004 8004 ### DEVELOPMENT / TOOLS 8005 8005 8006 + abi-compliance-checker = callPackage ../development/tools/misc/abi-compliance-checker { }; 8007 + 8008 + abi-dumper = callPackage ../development/tools/misc/abi-dumper { }; 8009 + 8006 8010 activator = throw '' 8007 8011 Typesafe Activator was removed in 2017-05-08 as the actual package reaches end of life. 8008 8012 ··· 8011 8015 for more information. 8012 8016 ''; 8013 8017 8018 + adtool = callPackage ../tools/admin/adtool { }; 8019 + 8014 8020 inherit (callPackage ../development/tools/alloy { }) 8015 8021 alloy4 8016 8022 alloy5 8017 8023 alloy; 8018 - 8019 - adtool = callPackage ../tools/admin/adtool { }; 8020 8024 8021 8025 augeas = callPackage ../tools/system/augeas { }; 8022 8026 ··· 8940 8944 vulnix = callPackage ../tools/security/vulnix { 8941 8945 pythonPackages = python3Packages; 8942 8946 }; 8947 + 8948 + vtable-dumper = callPackage ../development/tools/misc/vtable-dumper { }; 8943 8949 8944 8950 watson-ruby = callPackage ../development/tools/misc/watson-ruby {}; 8945 8951