1 { lib, stdenv, fetchurl, file }:
3 stdenv.mkDerivation rec {
8 url = "https://trac.mpich.org/projects/${pname}/raw-attachment/wiki/Downloads/${pname}-${version}.tar.gz";
9 sha256 = "0flyi596hm6fv7xyw2iykx3s65p748s62bf15624xcnwpfrh8ncy";
12 prePatch = "substituteInPlace configure --replace /usr/bin/file ${file}/bin/file";
17 description = "Atomic primitives for high performance, concurrent software";
18 homepage = "https://trac.mpich.org/projects/openpa";
19 license = lib.licenses.mit;
20 maintainers = with lib.maintainers; [ leenaars ];
21 platforms = lib.platforms.unix;
23 OPA (or sometimes OpenPA or Open Portable Atomics) is an
24 open source library intended to provide a consistent C API for performing
25 atomic operations on a variety of platforms. The main goal of the project is to
26 enable the portable usage of atomic operations in concurrent software.
27 Developers of client software can worry about implementing and improving their
28 concurrent algorithms instead of fiddling with inline assembly syntax and
29 learning new assembly dialects in order improve or maintain application