Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argopkgs
Commits
a6ef97c2
Commit
a6ef97c2
authored
Nov 01, 2018
by
Valentin Reis
Browse files
WIP for new libnrm.
parent
4c857ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
pkgs/default.nix
View file @
a6ef97c2
...
...
@@ -33,7 +33,7 @@ in rec {
qmcpack
=
callPackage
applications/qmcpack
{};
openmc
=
callPackage
applications/openmc
{};
stream
=
callPackage
applications/stream
{};
graph500
=
callPackage
applications/graph500
{};
graph500
=
callPackage
applications/graph500
{
inherit
libnrm
;
};
simple
=
callPackage
applications/simple
{
inherit
intel
libnrm
;};
};
...
...
pkgs/libnrm/default.nix
View file @
a6ef97c2
{
stdenv
,
fetchgit
,
zeromq
,
mpich2
,
gfortran
}:
stdenv
.
mkDerivation
{
name
=
"libnrm"
;
src
=
fetchgit
{
url
=
"https://xgitlab.cels.anl.gov/argo/libnrm.git"
;
sha256
=
"0n4bc29x9ngp7dv5np69bjg4nqbmqn93szpd6czzhs1r89wz0pdh"
;
{
stdenv
,
autoreconfHook
,
fetchgit
,
zeromq
,
gfortran
,
pkgconfig
,
mpich2
}:
rec
{
libnrm
=
stdenv
.
mkDerivation
{
name
=
"libnrm"
;
src
=
fetchgit
{
url
=
"https://xgitlab.cels.anl.gov/argo/libnrm.git"
;
sha256
=
"0n4bc29x9ngp7dv5np69bjg4nqbmqn93szpd6czzhs1r89wz0pdh"
;
};
nativeBuildInputs
=
[
autoreconfHook
pkgconfig
];
buildInputs
=
[
zeromq
gfortran
];
};
buildInputs
=
[
zeromq
mpich2
gfortran
];
buildPhase
=
"make ZMQ_PATH=
${
zeromq
}
MPI_INCLUDE=
${
mpich2
}
"
;
installPhase
=
''
mkdir -p $out/lib
mkdir -p $out/include
cp *.h $out/include
cp *.so $out/lib
''
;
pmpi
=
libnrm
.
overrideAttrs
(
oldAttrs
:
rec
{
configureFlags
=
"--enable-pmpi"
;
buildInputs
=
oldAttrs
.
buildInputs
++
[
mpich2
];
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment