nixpkgs/home/packages/custom/zcat-progress/default.nix

19 lines
220 B
Nix
Raw Normal View History

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