2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: rec {
|
|
|
|
pname = "has";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.5.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdabir";
|
|
|
|
repo = "has";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-TL8VwFx2tf+GkBwz0ILQg0pwcLJSTky57Wx9OW5+lS4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm0555 ${pname} -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;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "has";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
})
|