Re:Unix History and the `DC` Calculator
by Diti on Thursday September 05, 2024 @02:51PM
(#41459442)
For those who are on NixOS and can’t find `dc`, it’s present in BusyBox.
[ Parent
| on HN ]
> For those who are on NixOS and can’t find `dc`
$ nix-locate -r 'bin/dc$' | grep -o '^\w.*\.out' | xargs basename -s .out
plan9port
gavin-bc
busybox
bc
_9base
:)Haha, thanks! I had completely forgotten about `nix2` commands. I’ll try to remember this one!
nix-locate is actually a third-party command, shipped with nix-index: https://github.com/nix-community/nix-index
make sure to check out the pregenerated databases, they're very convenient