blob: 03d6bc886fdbfe07181426ffd5e4c55d0af4a906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
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 = {
homepage = "https://github.com/kdabir/has";
description = "Checks presence of various command line tools and their versions on the path";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Freed-Wu ];
platforms = lib.platforms.unix;
mainProgram = "has";
};
})
|