-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
p4est: 0-unstable-2021-06-22 -> 2.8.7 #415439
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,78 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| autoreconfHook, | ||
| pkg-config, | ||
| mpi, | ||
| zlib, | ||
| jansson, | ||
| mpiCheckPhaseHook, | ||
| debug ? false, | ||
| mpiSupport ? true, | ||
|
|
||
| # passthru.tests | ||
| testers, | ||
| }: | ||
|
|
||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "p4est-sc"; | ||
| version = "2.8.7"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "cburstedde"; | ||
| repo = "libsc"; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-oeEYNaYx1IdEWefctgUZVUa6wnb8K3z5Il2Y9MtQwBc="; | ||
| }; | ||
|
|
||
| strictDeps = true; | ||
|
|
||
| postPatch = '' | ||
| echo $version > .tarball-version | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ | ||
| autoreconfHook | ||
| pkg-config | ||
| ] ++ lib.optional mpiSupport mpi; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| zlib | ||
| jansson | ||
| ]; | ||
|
|
||
| configureFlags = | ||
| [ | ||
| "LDFLAGS=-lm" | ||
| ] | ||
| ++ lib.optionals mpiSupport [ | ||
| "--enable-mpi" | ||
| "CC=mpicc" | ||
| ] | ||
| ++ lib.optional debug "--enable-debug"; | ||
|
|
||
| __darwinAllowLocalNetworking = mpiSupport; | ||
|
|
||
| nativeCheckInputs = lib.optionals mpiSupport [ | ||
| mpiCheckPhaseHook | ||
| ]; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; | ||
|
|
||
| meta = { | ||
| description = "Support for parallel scientific applications"; | ||
| longDescription = '' | ||
| The SC library provides support for parallel scientific applications. | ||
| Its main purpose is to support the p4est software library, hence | ||
| this package is called p4est-sc, but it works standalone, too. | ||
| ''; | ||
| homepage = "https://www.p4est.org/"; | ||
| downloadPage = "https://github.com/cburstedde/libsc.git"; | ||
| pkgConfigModules = [ "libsc" ]; | ||
| license = lib.licenses.lgpl21Plus; | ||
| maintainers = with lib.maintainers; [ qbisi ]; | ||
| }; | ||
| }) |
This file contains hidden or 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,88 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| autoreconfHook, | ||
| pkg-config, | ||
| metis, | ||
| p4est-sc, | ||
| mpi, | ||
| mpiCheckPhaseHook, | ||
| debug ? false, | ||
| withMetis ? true, | ||
| mpiSupport ? true, | ||
|
|
||
| # passthru.tests | ||
| testers, | ||
| }: | ||
| let | ||
| p4est-sc' = p4est-sc.override { inherit mpi mpiSupport debug; }; | ||
| in | ||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "p4est"; | ||
| version = "2.8.7"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "cburstedde"; | ||
| repo = "p4est"; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-8JvKaYOP4IO1Xmim74KNHvMLOV3y9VRoT76RBCaRyhI="; | ||
| }; | ||
|
|
||
| strictDeps = true; | ||
|
|
||
| postPatch = '' | ||
| echo $version > .tarball-version | ||
|
|
||
| substituteInPlace Makefile.am \ | ||
| --replace-fail "@P4EST_SC_AMFLAGS@" "-I ${p4est-sc}/share/aclocal" | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ | ||
| autoreconfHook | ||
| pkg-config | ||
| ] ++ lib.optional mpiSupport mpi; | ||
|
|
||
| buildInputs = [ | ||
| metis | ||
| ]; | ||
|
|
||
| propagatedBuildInputs = [ p4est-sc' ]; | ||
|
|
||
| configureFlags = | ||
| [ | ||
| "--with-sc=${p4est-sc'}" | ||
| "--with-metis" | ||
| "--enable-p6est" | ||
| "LDFLAGS=-lm" | ||
| ] | ||
| ++ lib.optionals mpiSupport [ | ||
| "--enable-mpi" | ||
| "CC=mpicc" | ||
| ] | ||
| ++ lib.optional debug "--enable-debug"; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| __darwinAllowLocalNetworking = mpiSupport; | ||
|
|
||
| nativeCheckInputs = lib.optionals mpiSupport [ | ||
| mpiCheckPhaseHook | ||
| ]; | ||
|
|
||
| passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; | ||
|
|
||
| meta = { | ||
| description = "Parallel AMR on Forests of Octrees"; | ||
| longDescription = '' | ||
| The p4est software library provides algorithms for parallel AMR. | ||
| AMR refers to Adaptive Mesh Refinement, a technique in scientific | ||
| computing to cover the domain of a simulation with an adaptive mesh. | ||
| ''; | ||
| homepage = "https://www.p4est.org/"; | ||
| downloadPage = "https://github.com/cburstedde/p4est.git"; | ||
| pkgConfigModules = [ "p4est" ]; | ||
| license = lib.licenses.gpl2Plus; | ||
| maintainers = with lib.maintainers; [ qbisi ]; | ||
| }; | ||
| }) | ||
78 changes: 0 additions & 78 deletions
78
pkgs/development/libraries/science/math/p4est-sc/default.nix
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
pkgs/development/libraries/science/math/p4est/p4est-metis.patch
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.