Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 24 lines 554 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "libwhich"; 5 version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "vtjnash"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-JNIWdI12sL3TZqVA3GeH0KbgqFDbMsEdecea3392Goc="; 12 }; 13 14 installPhase = '' 15 install -Dm755 -t $out/bin libwhich 16 ''; 17 18 meta = with lib; { 19 description = "Like `which`, for dynamic libraries"; 20 homepage = "https://github.com/vtjnash/libwhich"; 21 license = licenses.mit; 22 maintainers = with maintainers; [ dtzWill ]; 23 }; 24}