NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.62k forks source link

Package OpenFOAM for FreeCAD's Cfd workbench #131486

Open Kreyren opened 3 years ago

Kreyren commented 3 years ago

Project description

Dependency for fluid simulation for FreeCAD's Cfd workbench https://github.com/NixOS/nixpkgs/issues/131155, see https://github.com/qingfengxia/Cfd#debianubuntu

Metadata

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

bgamari commented 1 year ago

For what it's worth, I have started packaging OpenFOAM in https://github.com/bgamari/openfoam.nix. Perhaps when the dust has settled I will try to upstream this.

stefanboere commented 1 year ago

That would be very nice indeed! For what it is worth, I do not know how far you already got, but I later also found this derivation https://git.computecanada.ca/nix/ccpkgs/-/blob/cc-20.09/pkgs/openfoam.nix. It is a bit outdated though.

luzpaz commented 1 year ago

soft bump

Also FYI, https://github.com/NixOS/nixpkgs/issues/249109

nixos-discourse commented 3 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/package-openfoam-for-nixpkgs/47096/1

MaartenDurt commented 3 months ago

Maybe a good challenge for @olesenm?

olesenm commented 3 months ago

Maybe a good challenge for @olesenm?

Quite possibly, but haven't honestly seen a big push for nix on any clusters etc, so hard for me to justify work or private time for it. If you do need some additional starting points, there are recipes for debian, rpm, spack packages (eg, https://develop.openfoam.com/Development/openfoam/-/wikis/packaging/common/openfoamAPI.spec) that might be useful. In all recent versions there is also the bin/tools/install-dirs and bin/tools/install-platform scripts that could be useful. To conveniently handle much of the OpenFOAM environment, there is also the etc/openfoam bash wrapper. Yet another starting point for packaging could be some of the environment scripts from the docker packages (https://develop.openfoam.com/packaging/containers)