Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub, cmake, cppunit }:
2
3stdenv.mkDerivation rec {
4 pname = "cpp-utilities";
5 version = "5.2.0";
6
7 src = fetchFromGitHub {
8 owner = "Martchus";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0cghk1a0ki1063ci63imakmggwzkky1hx6lhrvc0wjfv754wsklb";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 checkInputs = [ cppunit ];
16 # Otherwise, tests fail since the resulting shared object libc++utilities.so is only available in PWD of the make files
17 checkFlagsArray = [ "LD_LIBRARY_PATH=$(PWD)" ];
18 doCheck = true;
19
20 meta = with stdenv.lib; {
21 homepage = "https://github.com/Martchus/cpp-utilities";
22 description = "Common C++ classes and routines used by @Martchus' applications featuring argument parser, IO and conversion utilities";
23 license = licenses.gpl2;
24 maintainers = with maintainers; [ doronbehar ];
25 platforms = platforms.linux;
26 };
27}