Nix support improvements
Quick Start for BTC:
$ git clone https://github.com/mmgen/mmgen-wallet
$ cd mmgen-wallet
$ nix-shell --pure nix
Enable altcoins and additional packages:
$ mkdir -p ~/.mmgen
$ cp nix/user-packages.nix ~/.mmgen
# ... edit ~/.mmgen/user-packages.nix as required ...
$ nix-shell --pure nix
For NixOS installation and other information, see:
nix/README
This commit is contained in:
parent
783b05e373
commit
abbc9c843a
18 changed files with 199 additions and 130 deletions
48
nix/user-packages.nix
Normal file
48
nix/user-packages.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Nix environment user configuration for the MMGen Project
|
||||
#
|
||||
# In addition to setting new attributes, this file may be used to override the defaults
|
||||
# in nix/packages.nix of the mmgen-wallet repository
|
||||
|
||||
{ pkgs, python, bdir }:
|
||||
|
||||
rec {
|
||||
### Set nixpkgs globally for the MMGen environment.
|
||||
### If you set it, make sure to uncomment the python variable assignment below.
|
||||
# pkgs = import (bdir + /nixpkgs-24.05.nix) {};
|
||||
|
||||
### Set python version globally for the MMGen environment.
|
||||
### Must be set if pkgs is set.
|
||||
# python = pkgs.python312;
|
||||
|
||||
system-packages = with pkgs; {
|
||||
# monero-cli = monero-cli; # Monero daemon
|
||||
# # go-ethereum = go-ethereum; # Geth - latest version for transacting on mainnet
|
||||
# go-ethereum = callPackage (bdir + /go-ethereum.nix) { # Geth - old version for test suite (ethdev)
|
||||
# buildGoModule = buildGo122Module;
|
||||
# tag_version = "v1.13.15";
|
||||
# vendor_hash = "sha256-LWNFuF66KudxrpWBBXjMbrWP5CwEuPE2h3kGfILIII0";
|
||||
# };
|
||||
# litecoin = callPackage (bdir + /litecoin.nix) {}; # Litecoin daemon
|
||||
# bitcoin-cash = callPackage (bdir + /bitcoin-cash-node.nix) {}; # Bitcoin Cash Node daemon
|
||||
# zcash-mini = callPackage (bdir + /zcash-mini.nix) {}; # ZEC (test suite)
|
||||
|
||||
### For development with --pure (add/remove packages for your setup):
|
||||
# neovim-qt = neovim-qt;
|
||||
# rxvt-unicode = rxvt-unicode;
|
||||
# which = which;
|
||||
# ctags = ctags;
|
||||
# xclip = xclip;
|
||||
|
||||
### For test suite with --pure:
|
||||
# openssh = openssh; # XMR tests
|
||||
};
|
||||
|
||||
python-packages = with python.pkgs; {
|
||||
# pycryptodome = pycryptodome; # altcoins
|
||||
# py-ecc = py-ecc; # ETH, ETC
|
||||
# mypy-extensions = mypy-extensions; # ETH, ETC
|
||||
# pysocks = pysocks; # XMR
|
||||
# monero = monero; # XMR (test suite)
|
||||
# eth-keys = eth-keys; # ETH, ETC (test suite)
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue