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