Move shell.nix contents into separate file
This commit is contained in:
parent
d80ddf3244
commit
5c6017aad4
18
contrib/nixos/shell.nix
Normal file
18
contrib/nixos/shell.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue