Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
description = "kernel-node development environment";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rustc
cargo
clippy
rustfmt
clang_19
llvmPackages_19.libclang
cmake
ninja
gnumake
gcc14
pkg-config
capnproto
bitcoind
];

buildInputs = with pkgs; [
boost
libevent
sqlite
];

LIBCLANG_PATH = "${pkgs.llvmPackages_19.libclang.lib}/lib";
BITCOIND_EXE = "${pkgs.bitcoind}/bin/bitcoind";

shellHook = ''
export CC=clang
export CXX=clang++
export CMAKE_GENERATOR=Ninja
'';
};
});
};
}
Loading