Not entirely sure what was wrong about the former approach tbh, but
the difference is that this patch actually replaces the placeholder
in the patch and builds a working executable on my m2 macbook air.
* passage: use getopt from nix on darwin
This removes an ugly hack from upstream which hard-codes a bunch of
paths to find gnu-getopt (as opposed to darwins getopt in
/usr/bin/getopt).
This lets nix-built passage fail on systems which don't have one of
those already installed (i.e. from homebrew).
As upstream seemingly doesn't provide a way to override this easily yet,
we do it ourselves.
---------
Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
Dependency on tree(1) is used to pretty-print list of all stored passwords.
Techically, is not needed to fetch or store password by its name, but without
it "passage" without arguments would print error.