File tree Expand file tree Collapse file tree 2 files changed +114
-0
lines changed Expand file tree Collapse file tree 2 files changed +114
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ description = "Bitcoin Core development environment" ;
3+
4+ inputs = {
5+ nixpkgs . url = "github:NixOS/nixpkgs/nixos-25.05" ;
6+ flake-utils . url = "github:numtide/flake-utils" ;
7+ } ;
8+
9+ outputs = {
10+ nixpkgs ,
11+ flake-utils ,
12+ ...
13+ } :
14+ flake-utils . lib . eachDefaultSystem (
15+ system : let
16+ pkgs = import nixpkgs {
17+ inherit system ;
18+ } ;
19+ in {
20+ formatter = pkgs . alejandra ;
21+
22+ devShells . default = pkgs . mkShell . override {
23+ stdenv = pkgs . gcc15Stdenv ;
24+ } {
25+ buildInputs = with pkgs ; [
26+ ccache
27+ cmake
28+ ninja
29+ pkg-config
30+
31+ boost
32+ capnproto
33+ libevent
34+ libsystemtap
35+ linuxPackages . bcc
36+ linuxPackages . bpftrace
37+ sqlite . dev
38+ zeromq
39+ ] ;
40+
41+ shellHook = ''
42+ export CCACHE_COMPRESS=1
43+ export CCACHE_SLOPPINESS=random_seed
44+ export CCACHE_UMASK=007
45+ export CMAKE_GENERATOR=Ninja
46+
47+ echo "CCACHE_DIR: $CCACHE_DIR"
48+ '' ;
49+ } ;
50+ }
51+ ) ;
52+ }
53+
You can’t perform that action at this time.
0 commit comments