depot/third_party/nixpkgs/pkgs/applications/misc/has/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

30 lines
741 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation (finalAttrs: rec {
pname = "has";
version = "1.5.0";
src = fetchFromGitHub {
owner = "kdabir";
repo = "has";
rev = "v${finalAttrs.version}";
hash = "sha256-TL8VwFx2tf+GkBwz0ILQg0pwcLJSTky57Wx9OW5+lS4=";
};
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;
mainProgram = "has";
};
})