Merge pull request #202338 from Freed-Wu/has

has: init at 1.4.0
This commit is contained in:
Pol Dellaiera 2023-06-03 07:31:17 +02:00 committed by GitHub
commit 1b79f9b1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 0 deletions

View File

@ -5422,6 +5422,12 @@
githubId = 7551358;
name = "Frede Emil";
};
Freed-Wu = {
email = "wuzhenyu@ustc.edu";
github = "Freed-Wu";
githubId = 32936898;
name = "Wu Zhenyu";
};
freezeboy = {
github = "freezeboy";
githubId = 13279982;

View File

@ -0,0 +1,29 @@
{ 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;
};
})

View File

@ -5171,6 +5171,8 @@ with pkgs;
gti = callPackage ../tools/misc/gti { };
has = callPackage ../applications/misc/has { };
hdate = callPackage ../applications/misc/hdate { };
heatseeker = callPackage ../tools/misc/heatseeker { };