Nix: update to nixpkgs 26.05
This commit is contained in:
parent
b79460339d
commit
c90b4c5917
5 changed files with 23 additions and 24 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ add_pkgs_path }:
|
||||
|
||||
let
|
||||
dfl_nixpkgs = import ./nixpkgs-25.11.nix {};
|
||||
dfl_nixpkgs = import ./nixpkgs-26.05.nix {};
|
||||
old_nixpkgs = import ./nixpkgs-25.11.nix {};
|
||||
dfl_python = pkgs.python313;
|
||||
null_pkgs = {
|
||||
system-packages = {};
|
||||
|
|
@ -11,6 +12,7 @@ let
|
|||
~/.mmgen/user-packages.nix else ./user-packages.nix;
|
||||
usr_pkgs = import usr_pkgs_path {
|
||||
pkgs = dfl_nixpkgs;
|
||||
old_pkgs = old_nixpkgs;
|
||||
python = dfl_python;
|
||||
bdir = ./.; };
|
||||
pkgs = if usr_pkgs?pkgs then usr_pkgs.pkgs else dfl_nixpkgs;
|
||||
|
|
|
|||
9
nix/nixpkgs-26.05.nix
Normal file
9
nix/nixpkgs-26.05.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import (
|
||||
fetchGit {
|
||||
url = "https://github.com/NixOS/nixpkgs.git";
|
||||
# url = /path/to/repo/nixpkgs-26.05.git;
|
||||
ref = "release-26.05";
|
||||
rev = "aa42bf7ceec62347e0962a461071ba81d39bdf37";
|
||||
shallow = true;
|
||||
}
|
||||
)
|
||||
14
nix/reth.nix
14
nix/reth.nix
|
|
@ -1,20 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
|
||||
let
|
||||
# cargo and rustc packages from 25.11 are out of date,
|
||||
# so fetch them from a more recent commit:
|
||||
pinnedPkgs = fetchGit {
|
||||
url = "https://github.com/NixOS/nixpkgs.git";
|
||||
# url = /path/to/repo/nixpkgs-116266.git;
|
||||
rev = "116266f52682e7b975426c66204b3dada19be502";
|
||||
shallow = true;
|
||||
};
|
||||
pkgs = import pinnedPkgs {};
|
||||
|
||||
in
|
||||
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "reth";
|
||||
version = "2.2.0";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, fetchzip, fetchurl }:
|
||||
{ old_pkgs, fetchzip, fetchurl }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
old_pkgs.stdenv.mkDerivation rec {
|
||||
pname = "solc";
|
||||
version = "0.8.26";
|
||||
src = fetchzip {
|
||||
|
|
@ -19,8 +19,8 @@ pkgs.stdenv.mkDerivation rec {
|
|||
url = "https://github.com/nlohmann/json/releases/download/v3.11.3/json.hpp";
|
||||
sha256 = "sha256-m+pMgGbvShwgayvlo2MC+JJvf9xgh69dILQX0M8QPqY=";
|
||||
};
|
||||
nativeBuildInputs = [ pkgs.cmake ];
|
||||
buildInputs = [ pkgs.boost ];
|
||||
nativeBuildInputs = [ old_pkgs.cmake ];
|
||||
buildInputs = [ old_pkgs.boost ];
|
||||
cmakeFlags = [ "-DBoost_USE_STATIC_LIBS=OFF" ];
|
||||
patchPhase = ''
|
||||
mkdir -p deps/downloads
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
# 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 }:
|
||||
{ pkgs, old_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-25.11.nix) {};
|
||||
# pkgs = import (bdir + /nixpkgs-26.05.nix) {};
|
||||
|
||||
### Set python version globally for the MMGen environment.
|
||||
### Must be set if pkgs is set.
|
||||
|
|
@ -18,17 +18,17 @@ rec {
|
|||
# monero-cli = monero-cli; # Monero daemon
|
||||
# go-ethereum = go-ethereum; # Geth
|
||||
# reth = callPackage (bdir + /reth.nix) {}; # Rust Ethereum daemon
|
||||
# solc = callPackage (bdir + /solc.nix) {}; # Solidity compiler
|
||||
# solc = callPackage (bdir + /solc.nix) { old_pkgs=old_pkgs; }; # Solidity compiler
|
||||
# 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 = neovim;
|
||||
# neovim-qt = neovim-qt;
|
||||
# neovim = old_pkgs.neovim;
|
||||
# neovim-qt = old_pkgs.neovim-qt;
|
||||
# rxvt-unicode = rxvt-unicode;
|
||||
# which = which;
|
||||
# ctags = ctags;
|
||||
# ctags = universal-ctags;
|
||||
# xclip = xclip;
|
||||
# ruff = ruff;
|
||||
# perl = perl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue