From 203596e9df49b537a35ce49abdd89f67ceef6b4c Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 16 Sep 2025 11:27:27 +0000 Subject: [PATCH] minor Nix fixes --- nix/go-ethereum.nix | 6 ++++-- nix/shell.nix | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nix/go-ethereum.nix b/nix/go-ethereum.nix index c1329630..e6116ad0 100644 --- a/nix/go-ethereum.nix +++ b/nix/go-ethereum.nix @@ -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; }; diff --git a/nix/shell.nix b/nix/shell.nix index d574ebf5..3923f88a 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -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 '';