lol

hred: init at 1.5.0

+34
+32
pkgs/development/tools/hred/default.nix
··· 1 + { lib, buildNpmPackage, fetchFromGitHub, runCommand, hred, jq }: 2 + 3 + buildNpmPackage rec { 4 + pname = "hred"; 5 + version = "1.5.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "danburzo"; 9 + repo = "hred"; 10 + rev = "v${version}"; 11 + hash = "sha256-rnobJG9Z1lXEeFm+c0f9OsbiTzxeP3+zut5LYpGzWfc="; 12 + }; 13 + 14 + npmDepsHash = "sha256-POxlGWK0TJMwNWDpiK5+OXLGtAx4lFJO3imoe/h+7Sc="; 15 + 16 + dontNpmBuild = true; 17 + 18 + passthru.tests = { 19 + simple = runCommand "${pname}-test" {} '' 20 + set -e -o pipefail 21 + echo '<i id="foo">bar</i>' | ${hred}/bin/hred 'i#foo { @id => id, @.textContent => text }' -c | ${jq}/bin/jq -c > $out 22 + [ "$(cat $out)" = '{"id":"foo","text":"bar"}' ] 23 + ''; 24 + }; 25 + 26 + meta = { 27 + description = "A command-line tool to extract data from HTML"; 28 + license = lib.licenses.mit; 29 + homepage = "https://github.com/danburzo/hred"; 30 + maintainers = with lib.maintainers; [ tejing ]; 31 + }; 32 + }
+2
pkgs/top-level/all-packages.nix
··· 1879 1879 1880 1880 gst = callPackage ../applications/version-management/gst { }; 1881 1881 1882 + hred = callPackage ../development/tools/hred { }; 1883 + 1882 1884 hub = callPackage ../applications/version-management/hub { }; 1883 1885 1884 1886 hut = callPackage ../applications/version-management/hut { };