Skip to content

Commit

Permalink
meta: support nix flake for buliding
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Nov 7, 2024
1 parent 7b2883a commit ae98bdd
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .nix/shell.nix

This file was deleted.

61 changes: 61 additions & 0 deletions flake.lock

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

44 changes: 44 additions & 0 deletions flake.nix
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
'';
};
}
);
}

0 comments on commit ae98bdd

Please sign in to comment.