Skip to content

Commit 183a64f

Browse files
committed
ci: sneak a flake in
1 parent c9b650d commit 183a64f

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

ci/flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/flake.nix

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+

0 commit comments

Comments
 (0)