minor Nix fixes

This commit is contained in:
The MMGen Project 2025-09-16 11:27:27 +00:00
commit 203596e9df
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 8 additions and 2 deletions

View file

@ -17,7 +17,9 @@ buildGoModule {
src = fetchGit {
url = "https://github.com/ethereum/go-ethereum.git";
# url = /path/to/repo/go-ethereum.git;
ref = "refs/tags/${tag_version}";
shallow = true;
};
proxyVendor = false;
@ -33,8 +35,8 @@ buildGoModule {
## Fix for usb-related segmentation faults on darwin
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
pkgs.libobjc
pkgs.IOKit
pkgs.libobjc
pkgs.IOKit
];
# passthru.tests = { inherit (nixosTests) geth; };

View file

@ -41,6 +41,10 @@ pkgs.mkShellNoCC {
export PYTHONPYCACHEPREFIX=$HOME/.cache/pycache
export PATH=$pwd/cmds:$pwd/.bin-override:$HOME/.local/bin:$PATH
export LANG="en_US.UTF-8"
export HISTFILESIZE=2000
export HISTSIZE=2000
export HISTCONTROL="ignoreboth"
export HISTFILE=$pwd/.bash_history
[ "$UID" == 0 ] || do_bin_override
'';