c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
30 lines
741 B
Nix
30 lines
741 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: rec {
|
|
pname = "has";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kdabir";
|
|
repo = "has";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-3XsNSl4lQfJjEPNGoFj6ABXGkwOUsg9AFDAz8euZApE=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
})
|