You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
714 B
Nix
28 lines
714 B
Nix
{
|
|
description = "Flake utils demo";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
inputs.nixpkgs.url = "github:bgamari/nixpkgs/wip/vtk-egg-info";
|
|
|
|
inputs.openfoam = {
|
|
url = "https://develop.openfoam.com/Development/openfoam/-/archive/OpenFOAM-v2212/openfoam-OpenFOAM-v2212.tar.gz";
|
|
flake = false;
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
{
|
|
packages = rec {
|
|
openfoam = pkgs.callPackage ./openfoam.nix {
|
|
src = inputs.openfoam;
|
|
mpi = pkgs.openmpi;
|
|
};
|
|
|
|
default = openfoam;
|
|
};
|
|
}
|
|
);
|
|
}
|