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