Skip to content

Commit

Permalink
openpa: init at 1.0.4 (#26033)
Browse files Browse the repository at this point in the history
  • Loading branch information
leenaars authored and joachifm committed Jun 27, 2017
1 parent 767a8b2 commit 10126e1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/development/libraries/openpa/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv, fetchurl, file }:

stdenv.mkDerivation rec {
pname = "openpa";
version = "1.0.4";
name = "${pname}-${version}";

src = fetchurl {
url = "https://trac.mpich.org/projects/${pname}/raw-attachment/wiki/Downloads/${name}.tar.gz";
sha256 = "0flyi596hm6fv7xyw2iykx3s65p748s62bf15624xcnwpfrh8ncy";
};

prePatch = ''substituteInPlace configure --replace /usr/bin/file ${file}/bin/file'';

doCheck = true;

meta = {
description = "Atomic primitives for high performance, concurrent software";
homepage = "https://trac.mpich.org/projects/openpa";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ leenaars ];
platforms = with stdenv.lib.platforms; linux;
longDescription = ''
OPA (or sometimes OpenPA or Open Portable Atomics) is an
open source library intended to provide a consistent C API for performing
atomic operations on a variety of platforms. The main goal of the project is to
enable the portable usage of atomic operations in concurrent software.
Developers of client software can worry about implementing and improving their
concurrent algorithms instead of fiddling with inline assembly syntax and
learning new assembly dialects in order improve or maintain application
portability.
'';
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9506,6 +9506,8 @@ with pkgs;
openjpeg_2_1 = callPackage ../development/libraries/openjpeg/2.1.nix { };
openjpeg = openjpeg_2_1;

openpa = callPackage ../development/libraries/openpa { };

opensaml-cpp = callPackage ../development/libraries/opensaml-cpp { };

openscenegraph = callPackage ../development/libraries/openscenegraph { };
Expand Down

0 comments on commit 10126e1

Please sign in to comment.