2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, file }:
|
2017-06-27 21:52:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openpa";
|
|
|
|
version = "1.0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://trac.mpich.org/projects/${pname}/raw-attachment/wiki/Downloads/${pname}-${version}.tar.gz";
|
2017-06-27 21:52:23 +02:00
|
|
|
sha256 = "0flyi596hm6fv7xyw2iykx3s65p748s62bf15624xcnwpfrh8ncy";
|
|
|
|
};
|
|
|
|
|
2021-01-24 10:19:10 +01:00
|
|
|
prePatch = "substituteInPlace configure --replace /usr/bin/file ${file}/bin/file";
|
2017-06-27 21:52:23 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Atomic primitives for high performance, concurrent software";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://trac.mpich.org/projects/openpa";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ leenaars ];
|
2021-03-08 16:39:44 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2017-06-27 21:52:23 +02:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|