From dd63da9494c30dc7d13c16f6fe58673746592511 Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 10 Jun 2022 16:41:37 +0200 Subject: [PATCH] hwatch: init at 0.3.6 --- pkgs/tools/misc/hwatch/default.nix | 33 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/misc/hwatch/default.nix diff --git a/pkgs/tools/misc/hwatch/default.nix b/pkgs/tools/misc/hwatch/default.nix new file mode 100644 index 000000000000..259297eb494f --- /dev/null +++ b/pkgs/tools/misc/hwatch/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "hwatch"; + version = "0.3.6"; + + src = fetchFromGitHub { + owner = "blacknon"; + repo = pname; + # prefix, because just "0.3.6' causes the download to silently fail: + # $ curl -v https://github.com/blacknon/hwatch/archive/0.3.6.tar.gz + # ... + # < HTTP/2 300 + # ... + # the given path has multiple possibilities: #, # + rev = "refs/tags/${version}"; + sha256 = "sha256-uaAgA6DWwYVT9mQh55onW+qxIC2i9GVuimctTJpUgfA="; + }; + + cargoSha256 = "sha256-Xt3Z6ax3Y45KZhTYMBr/Rfx1o+ZAoPYj51SN5hnrXQM="; + + meta = with lib; { + homepage = "https://github.com/blackmon/hwatch"; + description= "Modern alternative to the watch command"; + longDescription = '' + A modern alternative to the watch command, records the differences in + execution results and can check this differences at after. + ''; + license = licenses.mit; + maintainers = with maintainers; [ hamburger1984 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 899a1823ed86..628115f43923 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -400,6 +400,8 @@ with pkgs; gpick = callPackage ../tools/misc/gpick { }; + hwatch = callPackage ../tools/misc/hwatch { }; + hobbes = callPackage ../development/tools/hobbes { stdenv = gcc10StdenvCompat; }; html5validator = python3Packages.callPackage ../applications/misc/html5validator { };