11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-q3JtQ9AxoP0ma9K96cC3gf6QmQ1FbS7T7I59qhkwbMk=";
22 makeFlags = [ "PREFIX=$(out)" ];
24 # Fails at https://github.com/haampie/libtree/blob/v3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath/Makefile#L28
28 version = testers.testVersion {
30 command = "libtree --version";
31 version = finalAttrs.version;
33 checkCoreUtils = runCommand "${finalAttrs.pname}-ls-test" {
34 nativeBuildInputs = [ finalAttrs.finalPackage dieHook ];
36 libtree ${coreutils}/bin/ls > $out || die "libtree failed to show dependencies."
42 description = "Tree ldd with an option to bundle dependencies into a single folder";
43 mainProgram = "libtree";
44 homepage = "https://github.com/haampie/libtree";
45 license = licenses.mit;
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ prusnak rardiol ];