nixpkgs/pkgs/development/tools/misc/libwhich/default.nix
Will Dietz e198573407
libwhich: 2019-03-20 -> 1.1.0
musl, openbsd support
2019-06-09 22:18:06 -05:00

24 lines
555 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libwhich";
version = "1.1.0";
src = fetchFromGitHub {
owner = "vtjnash";
repo = pname;
rev = "v${version}";
sha256 = "0s0pqai61jszmi495k621rdlf288ij67adkz72hwqqarqp54idhb";
};
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 ];
};
}