nixpkgs/pkgs/development/tools/misc/libtree/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
950 B
Nix
Raw Normal View History

2021-12-04 10:11:21 +00:00
{ lib
, stdenv
, fetchFromGitHub
, binutils
, chrpath
, cmake
, cxxopts
, elfio
, termcolor
, gtest
}:
stdenv.mkDerivation rec {
pname = "libtree";
version = "3.1.0";
2021-12-04 10:11:21 +00:00
src = fetchFromGitHub {
owner = "haampie";
repo = "libtree";
rev = "v${version}";
sha256 = "sha256-C5QlQsBL9Als80Tv13ex2XS5Yj50Ht8eDfGYAtnh/HI=";
2021-12-04 10:11:21 +00:00
};
buildInputs = [ cxxopts elfio termcolor ];
makeFlags = [ "PREFIX=$(out)" ];
2021-12-04 10:11:21 +00:00
# note: "make check" returns exit code 0 even when the tests fail.
# This has been reported upstream:
# https://github.com/haampie/libtree/issues/77
nativeCheckInputs = [ gtest ];
checkTarget = [ "check" ];
doCheck = true;
2021-12-04 10:11:21 +00:00
meta = with lib; {
description = "Tree ldd with an option to bundle dependencies into a single folder";
homepage = "https://github.com/haampie/libtree";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ prusnak rardiol ];
};
}