Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
739 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "has";
version = "1.5.2";
src = fetchFromGitHub {
owner = "kdabir";
repo = "has";
rev = "v${finalAttrs.version}";
hash = "sha256-sqpKI9RHo0VlGUNU71mIzw4LzExji2FN2FBOAIVo4jI=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm0555 has -t $out/bin
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/kdabir/has";
description = "Checks presence of various command line tools and their versions on the path";
license = licenses.mit;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
mainProgram = "has";
};
})