2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-03-20 20:45:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libwhich";
|
2019-06-07 19:13:21 +01:00
|
|
|
version = "1.1.0";
|
2019-03-20 20:45:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vtjnash";
|
|
|
|
repo = pname;
|
2019-06-07 19:13:21 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0s0pqai61jszmi495k621rdlf288ij67adkz72hwqqarqp54idhb";
|
2019-03-20 20:45:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 -t $out/bin libwhich
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-03-20 20:45:35 +00:00
|
|
|
description = "Like `which`, for dynamic libraries";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/vtjnash/libwhich";
|
2019-03-20 20:45:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|