Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 42 lines 950 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, binutils 5, chrpath 6, cmake 7, cxxopts 8, elfio 9, termcolor 10, gtest 11}: 12 13stdenv.mkDerivation rec { 14 pname = "libtree"; 15 version = "3.1.0"; 16 17 src = fetchFromGitHub { 18 owner = "haampie"; 19 repo = "libtree"; 20 rev = "v${version}"; 21 sha256 = "sha256-C5QlQsBL9Als80Tv13ex2XS5Yj50Ht8eDfGYAtnh/HI="; 22 }; 23 24 buildInputs = [ cxxopts elfio termcolor ]; 25 26 makeFlags = [ "PREFIX=$(out)" ]; 27 28 # note: "make check" returns exit code 0 even when the tests fail. 29 # This has been reported upstream: 30 # https://github.com/haampie/libtree/issues/77 31 nativeCheckInputs = [ gtest ]; 32 checkTarget = [ "check" ]; 33 doCheck = true; 34 35 meta = with lib; { 36 description = "Tree ldd with an option to bundle dependencies into a single folder"; 37 homepage = "https://github.com/haampie/libtree"; 38 license = licenses.mit; 39 platforms = platforms.linux; 40 maintainers = with maintainers; [ prusnak rardiol ]; 41 }; 42}