From 8aee38162cf6d3ba6f8c389eedde56664750b33d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 22 Jan 2018 14:45:00 -0800 Subject: [PATCH] doc: Nix{,OS} build instructions Signed-off-by: William Casarin --- doc/INSTALL.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/INSTALL.md b/doc/INSTALL.md index c09a4ac79..c6d20fa55 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -86,3 +86,16 @@ Running lightning: $ ./lightningd/lightningd & $ ./cli/lightning-cli help ``` + +To Build on Nix{,OS} +-------------------- + +Untested on MacOS/Windows/Other Linux. Works on NixOS. + +Use nix-shell launch a shell with a full clightning dev environment: + +``` +$ nix-shell -Q -p gdb sqlite autoconf git clang libtool gmp sqlite autoconf \ +autogen automake 'python3.withPackages (p: [p.bitcoinlib])' \ +valgrind asciidoc --run make +```