-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta: support nix flake for buliding
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
- Loading branch information
1 parent
7b2883a
commit ae98bdd
Showing
3 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
description = "A rewriating of lnprototest library for black box testing of the lightning network protocol"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [ ]; | ||
}; | ||
in | ||
{ | ||
packages = { | ||
default = pkgs.gnumake; | ||
}; | ||
formatter = pkgs.nixpkgs-fmt; | ||
|
||
devShell = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
# build dependencies | ||
sqlite | ||
curl | ||
jdk | ||
|
||
pkg-config | ||
ncurses | ||
stdenv.cc.cc.lib | ||
|
||
git | ||
]; | ||
|
||
shellHook = '' | ||
# FIXME: this need to go in a build task | ||
./gradlew linuxX64DistZip | ||
''; | ||
}; | ||
} | ||
); | ||
} |