aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-08-03 23:35:05 +0100
committerGitHub <[email protected]>2021-08-03 23:35:05 +0100
commit246a103e9e0bd445d0162f46be0de97402219d99 (patch)
treed14d37639f8ac538103035ba1263999f2a374d64
parenttests: mempool_packages.py (#2433) (diff)
parentMove shell.nix contents into separate file (diff)
downloaddiscoin-246a103e9e0bd445d0162f46be0de97402219d99.tar.xz
discoin-246a103e9e0bd445d0162f46be0de97402219d99.zip
Merge pull request #2428 from zachlatta/1.14.4-nixos-build-instructions
Add build and setup instructions for NixOS
-rw-r--r--contrib/nixos/shell.nix18
-rw-r--r--doc/build-unix.md22
2 files changed, 40 insertions, 0 deletions
diff --git a/contrib/nixos/shell.nix b/contrib/nixos/shell.nix
new file mode 100644
index 000000000..ef20be61e
--- /dev/null
+++ b/contrib/nixos/shell.nix
@@ -0,0 +1,18 @@
+{ pkgs ? import <nixpkgs> { } }:
+with pkgs;
+mkShell {
+ nativeBuildInputs = [
+ pkg-config
+ autoreconfHook
+ openssl
+ db5
+ util-linux
+ boost
+ zlib
+ libevent
+ miniupnpc
+ qt4
+ protobuf
+ qrencode
+ ];
+}
diff --git a/doc/build-unix.md b/doc/build-unix.md
index 066aa860a..3126b4355 100644
--- a/doc/build-unix.md
+++ b/doc/build-unix.md
@@ -285,6 +285,28 @@ or building and depending on a local version of Berkeley DB 4.8. The readily ava
As mentioned above, when maintaining portability of the wallet between the standard Dogecoin Core distributions and independently built
node software is desired, Berkeley DB 4.8 must be used.
+Setup and Build Example: NixOS
+------------------------------
+This example lists the steps necessary to setup and build a full GUI distribution of the latest changes on NixOS.
+
+Clone and enter the repo:
+
+ $ git clone https://github.com/dogecoin/dogecoin
+ $ cd dogecoin
+
+Enter the `nix-shell` environment with all the Dogecoin dependencies present:
+
+ $ nix-shell ./contrib/nixos/shell.nix
+
+Run the build steps with flags necessary for NixOS:
+
+ $ ./autogen.sh
+ $ ./configure --with-incompatible-bdb --with-boost-libdir="$(nix eval --raw nixpkgs.boost.out)/lib" --with-gui
+ $ make
+
+Start the GUI!
+
+ $ ./src/qt/dogecoin-qt
ARM Cross-compilation
-------------------