depot/third_party/nixpkgs/pkgs/development/tools/misc/libwhich/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

25 lines
558 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 = [ ];
};
}