3
0
Fork 0
forked from mirrors/nixpkgs

cpp-utilities: address common issues in the derivation

This commit is contained in:
Doron Behar 2021-05-14 08:42:34 +03:00 committed by Jonathan Ringer
parent 8ead9feb90
commit 8b33abc6de

View file

@ -1,7 +1,6 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, cppunit
}:
@ -20,13 +19,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
checkInputs = [ cppunit ];
# Otherwise, tests fail since the resulting shared object libc++utilities.so is only available in PWD of the make files
checkFlagsArray = [ "LD_LIBRARY_PATH=$(PWD)" ];
preCheck = ''
checkFlagsArray+=(
"LD_LIBRARY_PATH=$PWD"
)
'';
doCheck = true;
meta = with lib; {
homepage = "https://github.com/Martchus/cpp-utilities";
description = "Common C++ classes and routines used by @Martchus' applications featuring argument parser, IO and conversion utilities";
license = licenses.gpl2;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ doronbehar ];
platforms = platforms.linux;
};