Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchurl 3, cmake 4, pkg-config 5, gtest 6, doxygen 7, graphviz 8, lcov 9}: 10 11stdenv.mkDerivation rec { 12 pname = "properties-cpp"; 13 version = "0.0.1"; 14 15 src = let srcver = "${version}+14.10.20140730"; in 16 fetchurl { 17 url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz"; 18 sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w"; 19 }; 20 21 postPatch = '' 22 sed -i "/add_subdirectory(tests)/d" CMakeLists.txt 23 ''; 24 25 nativeBuildInputs = [ cmake pkg-config ]; 26 27 buildInputs = [ gtest doxygen graphviz lcov ]; 28 29 meta = with lib; { 30 homepage = "https://launchpad.net/properties-cpp"; 31 description = "A very simple convenience library for handling properties and signals in C++11"; 32 license = licenses.lgpl3Only; 33 maintainers = with maintainers; [ edwtjo ]; 34 }; 35}