Move shell.nix contents into separate file

This commit is contained in:
Zach Latta 2021-08-03 14:46:51 -04:00
parent d80ddf3244
commit 5c6017aad4
2 changed files with 19 additions and 23 deletions

18
contrib/nixos/shell.nix Normal file
View file

@ -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
];
}

View file

@ -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: