diff --git a/pkgs/development/tools/misc/libwhich/default.nix b/pkgs/development/tools/misc/libwhich/default.nix new file mode 100644 index 000000000000..58aca8a8b5a4 --- /dev/null +++ b/pkgs/development/tools/misc/libwhich/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "libwhich"; + version = "2019-03-20"; + + src = fetchFromGitHub { + owner = "vtjnash"; + repo = pname; + rev = "b348872107c77cba50b60475aa8ce2ddba86aac0"; + sha256 = "0fd8hsdc9b9v83j89mxvisgrz77q9rlxnbzd6j63wq66h95r02r9"; + }; + + installPhase = '' + install -Dm755 -t $out/bin libwhich + ''; + + meta = with stdenv.lib; { + description = "Like `which`, for dynamic libraries"; + homepage = https://github.com/vtjnash/libwhich; + license = licenses.mit; + maintainers = with maintainers; [ dtzWill ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ceaefde1ca6..567664873f1d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8961,6 +8961,8 @@ in libtool_2 = callPackage ../development/tools/misc/libtool/libtool2.nix { }; + libwhich = callPackage ../development/tools/misc/libwhich { }; + linuxkit = callPackage ../development/tools/misc/linuxkit { }; lit = callPackage ../development/tools/misc/lit { };