2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, gtest
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, lcov
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "properties-cpp";
|
|
|
|
version = "0.0.1";
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = let srcver = "${version}+14.10.20140730"; in
|
|
|
|
fetchurl {
|
|
|
|
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz";
|
|
|
|
sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i "/add_subdirectory(tests)/d" CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ gtest doxygen graphviz lcov ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/properties-cpp";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A very simple convenience library for handling properties and signals in C++11";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
}
|