about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/libwhich/default.nix
blob: aee79b82644408b4708fe404099cb42c5eb297fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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";
    homepage = "https://github.com/vtjnash/libwhich";
    license = licenses.mit;
    maintainers = with maintainers; [ dtzWill ];
  };
}