depot/third_party/nixpkgs/pkgs/development/tools/misc/libwhich/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

24 lines
555 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libwhich";
version = "1.1.0";
src = fetchFromGitHub {
owner = "vtjnash";
repo = pname;
rev = "v${version}";
sha256 = "0s0pqai61jszmi495k621rdlf288ij67adkz72hwqqarqp54idhb";
};
installPhase = ''
install -Dm755 -t $out/bin libwhich
'';
meta = with lib; {
description = "Like `which`, for dynamic libraries";
homepage = "https://github.com/vtjnash/libwhich";
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
};
}