aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/nixos/shell.nix18
-rw-r--r--doc/build-unix.md24
2 files changed, 19 insertions, 23 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 e0fa510a6..3126b4355 100644
--- a/doc/build-unix.md
+++ b/doc/build-unix.md
@@ -294,31 +294,9 @@ Clone and enter the repo:
$ git clone https://github.com/dogecoin/dogecoin
$ cd dogecoin
-Creating a file in the root of the repository called `shell.nix` with the following contents:
-
-```nix
-{ pkgs ? import <nixpkgs> {} }:
- with pkgs; mkShell {
- nativeBuildInputs = [
- pkg-config
- autoreconfHook
- openssl
- db5
- util-linux
- boost
- zlib
- libevent
- miniupnpc
- qt4
- protobuf
- qrencode
- ];
-}
-```
-
Enter the `nix-shell` environment with all the Dogecoin dependencies present:
- $ nix-shell
+ $ nix-shell ./contrib/nixos/shell.nix
Run the build steps with flags necessary for NixOS: