Skip to content

Commit

Permalink
Add nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
smutch committed Jan 23, 2024
1 parent 1be6c9b commit 054c84e
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/612f97239e2cc474c13c9dafa0df378058c5ad8d";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
fftw-single = pkgs.fftw.override {
enableMpi = false;
precision = "single";
};
fftw-single-mpi = pkgs.fftw.override {
enableMpi = true;
precision = "single";
};
in
with pkgs;
{
devShell = mkShell {
buildInputs = [
cmake
openmpi
gsl
hdf5-mpi
fftw-single # <- required?
fftw-single-mpi
just
];
};
}
);
}

0 comments on commit 054c84e

Please sign in to comment.