diff options
author | Wu Zhenyu <wuzhenyu@ustc.edu> | 2022-11-22 19:37:48 +0800 |
---|---|---|
committer | Wu Zhenyu <wuzhenyu@ustc.edu> | 2023-06-03 12:42:21 +0800 |
commit | 7b006dd9b84da5c7596f0766868dc888006ef4ab (patch) | |
tree | ea0d754851d0b561a220e9029e5d6cea458ef9a2 /pkgs/applications/misc/has/default.nix | |
parent | 287131c409bcb8fb53c401ed028815c3e20b6b39 (diff) |
has: init at 1.4.0
Diffstat (limited to 'pkgs/applications/misc/has/default.nix')
-rw-r--r-- | pkgs/applications/misc/has/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/misc/has/default.nix b/pkgs/applications/misc/has/default.nix new file mode 100644 index 0000000000000..144d8073ff0e2 --- /dev/null +++ b/pkgs/applications/misc/has/default.nix @@ -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; + }; +}) |