1{ lib, stdenv, fetchurl, gcc-unwrapped }:
2
3stdenv.mkDerivation rec {
4 version = "1.4.0";
5 pname = "libthreadar";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/libthreadar/${pname}-${version}.tar.gz";
9 sha256 = "sha256-LkcVF4AnuslzpIg/S8sGNJQye6iGcQRGqCqAhg8aN5E=";
10 };
11
12 outputs = [ "out" "dev" ];
13
14 buildInputs = [ gcc-unwrapped ];
15
16 CXXFLAGS = [ "-std=c++14" ];
17
18 configureFlags = [
19 "--disable-build-html"
20 ];
21
22 postInstall = ''
23 # Disable html help
24 rm -r "$out"/share
25 '';
26
27 meta = with lib; {
28 homepage = "https://libthreadar.sourceforge.net/";
29 description = "A C++ library that provides several classes to manipulate threads";
30 longDescription = ''
31 Libthreadar is a C++ library providing a small set of C++ classes to manipulate
32 threads in a very simple and efficient way from your C++ code.
33 '';
34 maintainers = with maintainers; [ izorkin ];
35 license = licenses.lgpl3;
36 platforms = platforms.unix;
37 };
38}