mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
25 lines
555 B
Nix
25 lines
555 B
Nix
{ lib, 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 lib; {
|
|
description = "Like `which`, for dynamic libraries";
|
|
homepage = "https://github.com/vtjnash/libwhich";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|