Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Nix Update #42

Merged
merged 3 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions README-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,17 @@ that would be used by Nix, you may enter a nix shell as follows:
nix-shell
```

You may then configure with the following command:
```bash
configurePhase
```

And build with this one:
```bash
buildPhase
```

Finally, you can run the tests with:
As with many nix packages, you may then respectively
configure, build or run tests with the following respective commands,
or all of them combined with `&&`:
```bash
configurePhase &&
buildPhase &&
checkPhase
```

The `./src/` directory will have been added to your `PATH`
by the `shell.nix` configuration file,
so you can run commands simply with:
```bash
elements-cli -?
Expand Down
12 changes: 9 additions & 3 deletions pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ stdenv.mkDerivation rec {
"--with-boost-libdir=${boost.out}/lib"
"--disable-bench"
"--enable-any-asset-fees"
] ++ lib.optionals (!doCheck) [
"--without-natpmp"
"--without-upnp"
"--without-zmq"
"--without-usdt"
] ++ (if doCheck then [
"--enable-extended-functional-tests"
] else [
"--disable-tests"
"--disable-gui-tests"
] ++ lib.optionals (!withWallet) [
]) ++ lib.optionals (!withWallet) [
"--disable-wallet"
] ++ lib.optionals withGui [
"--with-gui=qt5"
Expand All @@ -88,7 +94,7 @@ stdenv.mkDerivation rec {

nativeCheckInputs = [ python3 ];

doCheck = false;
doCheck = true;

checkFlags =
[ "LC_ALL=en_US.UTF-8" ]
Expand Down
Loading