Quick Start for BTC:
$ git clone https://github.com/mmgen/mmgen-wallet
$ cd mmgen-wallet
$ nix-shell --pure scripts/mmgen-wallet-nix/shell.nix
For altcoin support and additional installation options, see:
scripts/mmgen-wallet-nix/packages.nix
Tested on Linux/x86_64. On other platforms your mileage may vary.
Note that Nix support is under development, and the installation process
is subject to change.
29 lines
950 B
Nix
29 lines
950 B
Nix
{ pkgs }:
|
|
|
|
pkgs.stdenvNoCC.mkDerivation {
|
|
pname = "zcash-mini";
|
|
version = "a2b35042";
|
|
src = fetchGit {
|
|
url = "https://github.com/FiloSottile/zcash-mini";
|
|
rev = "a2b35042ad3a3bc22b925ecfc45e768a376bd29a";
|
|
};
|
|
buildInputs = [ pkgs.go pkgs.binutils ];
|
|
patchPhase = ''
|
|
sed -e "s@github.com/FiloSottile/@@" -i main.go
|
|
sed -e "s@github.com/FiloSottile/@@" -i zcash/address.go
|
|
sed -e "s@github.com/btcsuite@zcash-mini@" -i zcash/address.go
|
|
sed -e "s@golang.org/x@zcash-mini@" -i zcash/address.go
|
|
mv vendor/github.com/btcsuite/btcutil .
|
|
mv vendor/golang.org/x/crypto .
|
|
'';
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
export HOME=$TMPDIR
|
|
go mod init zcash-mini
|
|
go build -mod=mod
|
|
mkdir --parents $out/bin
|
|
install --strip --mode=755 zcash-mini $out/bin
|
|
'';
|
|
dontFixup = true;
|
|
}
|