nixpkgs/home/packages/custom/zcat-progress/default.nix
2023-08-17 11:26:41 +02:00

19 lines
220 B
Nix

{
writeShellApplication
, pv
, gzip
}:
writeShellApplication {
name = "custom-zcat-with-progress";
runtimeInputs = [
pv
gzip
];
text = ''
zcat "$1" | pv -s "$(gzip -dc "$1" | wc -c)"
'';
}