depot/third_party/nixpkgs/pkgs/development/tools/misc/libwhich/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

25 lines
584 B
Nix

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