12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-q3JtQ9AxoP0ma9K96cC3gf6QmQ1FbS7T7I59qhkwbMk=";
23 makeFlags = [ "PREFIX=$(out)" ];
25 # Fails at https://github.com/haampie/libtree/blob/v3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath/Makefile#L28
29 version = testers.testVersion {
31 command = "libtree --version";
32 version = finalAttrs.version;
35 runCommand "${finalAttrs.pname}-ls-test"
38 finalAttrs.finalPackage
43 libtree ${coreutils}/bin/ls > $out || die "libtree failed to show dependencies."
49 description = "Tree ldd with an option to bundle dependencies into a single folder";
50 mainProgram = "libtree";
51 homepage = "https://github.com/haampie/libtree";
52 license = licenses.mit;
53 platforms = platforms.linux;
54 maintainers = with maintainers; [