2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ck";
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concurrencykit";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-04 09:07:49 +00:00
|
|
|
sha256 = "sha256-HUC+8Vd0koAmumRZ8gS5u6LVa7fUfkIYRaxVv6/7Hgg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace \
|
|
|
|
configure \
|
|
|
|
--replace \
|
|
|
|
'COMPILER=`./.1 2> /dev/null`' \
|
|
|
|
"COMPILER=gcc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = ["--platform=${stdenv.hostPlatform.parsed.cpu.name}}"];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High-performance concurrency research library";
|
|
|
|
longDescription = ''
|
|
|
|
Concurrency primitives, safe memory reclamation mechanisms and non-blocking data structures for the research, design and implementation of high performance concurrent systems.
|
|
|
|
'';
|
|
|
|
license = with licenses; [ asl20 bsd2 ];
|
|
|
|
homepage = "http://concurrencykit.org/";
|
2020-10-11 12:50:04 +00:00
|
|
|
platforms = platforms.unix;
|
2021-03-19 17:17:44 +00:00
|
|
|
maintainers = with maintainers; [ chessai thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|