2019-03-20 21:45:35 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libwhich";
|
2019-06-07 20:13:21 +02:00
|
|
|
version = "1.1.0";
|
2019-03-20 21:45:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vtjnash";
|
|
|
|
repo = pname;
|
2019-06-07 20:13:21 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0s0pqai61jszmi495k621rdlf288ij67adkz72hwqqarqp54idhb";
|
2019-03-20 21:45:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|