diff --git a/pkgs/tools/text/termbook/default.nix b/pkgs/tools/text/termbook/default.nix new file mode 100644 index 000000000000..3800963f44d2 --- /dev/null +++ b/pkgs/tools/text/termbook/default.nix @@ -0,0 +1,27 @@ +{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }: + +rustPlatform.buildRustPackage rec { + pname = "termbook-cli"; + version = "1.4.6"; + + src = fetchFromGitHub { + owner = "Byron"; + repo = "termbook"; + rev = "v${version}"; + sha256 = "Bo3DI0cMXIfP7ZVr8MAW/Tmv+4mEJBIQyLvRfVBDG8c="; + }; + + cargoSha256 = "sha256-9fFvJJlDzBmbI7hes/wfjAk1Cl2H55T5n8HLnUmDw/c="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "A runner for `mdbooks` to keep your documentation tested"; + homepage = "https://github.com/Byron/termbook/"; + changelog = "https://github.com/Byron/termbook/blob/${src.rev}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ phaer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e4ab3b30a7b..ded9c704d8fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13544,6 +13544,8 @@ with pkgs; xteve = callPackage ../servers/xteve { }; + termbook = callPackage ../tools/text/termbook { }; + testdisk = libsForQt5.callPackage ../tools/system/testdisk { }; testdisk-qt = testdisk.override { enableQt = true; };