depot/third_party/nixpkgs/pkgs/by-name/tr/treecat/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1 KiB
Nix

{
stdenv,
fetchFromSourcehut,
hareHook,
haredo,
lib,
scdoc,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "treecat";
version = "1.0.2-unstable-2023-11-28";
outputs = [
"out"
"man"
];
src = fetchFromSourcehut {
owner = "~autumnull";
repo = "treecat";
rev = "d277aed99eb48eef891b76916a61029989c41d2d";
hash = "sha256-4A01MAGkBSSzkyRw4omNbLoX8z+pHfoUO7/6QvEUu70=";
};
nativeBuildInputs = [
hareHook
haredo
scdoc
];
env.PREFIX = builtins.placeholder "out";
dontConfigure = true;
meta = {
description = "Serialize a directory to a tree diagram, and vice versa";
longDescription = ''
Treecat is an amalgamation of `tree(1)` and `cat(1)`, with the added
bonus that it can reconstruct its output back into the original filetree.
'';
homepage = "https://sr.ht/~autumnull/treecat/";
license = lib.licenses.wtfpl;
maintainers = with lib.maintainers; [ onemoresuza ];
mainProgram = "treecat";
inherit (hareHook.meta) platforms badPlatforms;
};
})