Skip to content

Commit ae98bdd

Browse files
meta: support nix flake for buliding
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 7b2883a commit ae98bdd

File tree

3 files changed

+105
-19
lines changed

3 files changed

+105
-19
lines changed

.nix/shell.nix

Lines changed: 0 additions & 19 deletions
This file was deleted.

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.

flake.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
description = "A rewriating of lnprototest library for black box testing of the lightning network protocol";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils, ... }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = import nixpkgs {
13+
inherit system;
14+
overlays = [ ];
15+
};
16+
in
17+
{
18+
packages = {
19+
default = pkgs.gnumake;
20+
};
21+
formatter = pkgs.nixpkgs-fmt;
22+
23+
devShell = pkgs.mkShell {
24+
buildInputs = with pkgs; [
25+
# build dependencies
26+
sqlite
27+
curl
28+
jdk
29+
30+
pkg-config
31+
ncurses
32+
stdenv.cc.cc.lib
33+
34+
git
35+
];
36+
37+
shellHook = ''
38+
# FIXME: this need to go in a build task
39+
./gradlew linuxX64DistZip
40+
'';
41+
};
42+
}
43+
);
44+
}

0 commit comments

Comments
 (0)