Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
gcc-unwrapped,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.5.0";
|
|
pname = "libthreadar";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libthreadar/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-wJAkIUGK7Ud6n2p1275vNkSx/W7LlgKWXQaDevetPko=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# this field is not present on Darwin, ensure it is zero everywhere
|
|
substituteInPlace src/thread_signal.cpp \
|
|
--replace-fail 'sigac.sa_restorer = nullptr;' "" \
|
|
--replace-fail 'struct sigaction sigac;' 'struct sigaction sigac = {0};'
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
buildInputs = [ gcc-unwrapped ];
|
|
|
|
CXXFLAGS = [ "-std=c++14" ];
|
|
|
|
configureFlags = [
|
|
"--disable-build-html"
|
|
];
|
|
|
|
postInstall = ''
|
|
# Disable html help
|
|
rm -r "$out"/share
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://libthreadar.sourceforge.net/";
|
|
description = "C++ library that provides several classes to manipulate threads";
|
|
longDescription = ''
|
|
Libthreadar is a C++ library providing a small set of C++ classes to manipulate
|
|
threads in a very simple and efficient way from your C++ code.
|
|
'';
|
|
maintainers = with maintainers; [ izorkin ];
|
|
license = licenses.lgpl3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|