-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Compilation of Elmer under Nix | ||
|
||
## Compiling from upstream | ||
|
||
The Nix flake exposes three different derivations (packages) that can be built using `nix build github:ElmerCSC/elmerfem#<version>`. | ||
|
||
### `default` | ||
Barebones Elmer with OpenMP and MPI support. | ||
|
||
### `gui` | ||
Elmer with GUI. | ||
|
||
### `ice` | ||
Elmer/ICE | ||
|
||
Specifying no version builds the `default` derivation. | ||
|
||
After building, the binaries are accessible under `result/bin`. | ||
|
||
## Compiling from a local repository | ||
|
||
In the local Elmer repository run `nix build` or `nix build .#<version>`. | ||
|
||
## Verbose output | ||
|
||
By default `nix build` only shows one line of the build output at once. | ||
To enable more verbose output, add the `-L` flag to the end of the build command. |