10 rustPlatform.buildRustPackage rec {
11 pname = "little_boxes";
14 src = fetchFromGitHub {
16 repo = "little_boxes";
18 hash = "sha256-Quh09K5meiA39ih/orJWF2WfkuZdymxub1dZvns/q3E=";
21 cargoVendorDir = "vendor";
23 nativeBuildInputs = [ installShellFiles ];
26 extrasPath=$(ls -d $releaseDir/build/little_boxes-*/out/)
28 installManPage $extrasPath/little_boxes.1
29 installShellCompletion --bash $extrasPath/little_boxes.bash
30 installShellCompletion --fish $extrasPath/little_boxes.fish
31 installShellCompletion --zsh $extrasPath/_little_boxes
34 passthru.tests.version = testers.testVersion {
35 package = little_boxes;
36 command = "little_boxes --version";
40 description = "Add boxes are input text";
42 little_boxes is a small program that takes input from stdin or a file
43 and wraps it with box made of ACII/Unicode Box Drawing characters. There
44 are several different charsets and you can optionally add a title
48 $ echo "Hello World" | little_boxes
53 homepage = "https://github.com/giodamelio/little_boxes";
54 license = licenses.mit;
55 maintainers = with maintainers; [ giodamelio ];
56 mainProgram = "little_boxes";