mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
libdnf: add cppunit, reenable tests
This commit is contained in:
parent
9b740a1bf8
commit
a222ff94ba
@ -15,6 +15,7 @@
|
||||
, libyaml
|
||||
, rpm
|
||||
, zchunk
|
||||
, cppunit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -36,6 +37,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
check
|
||||
cppunit
|
||||
openssl
|
||||
json_c
|
||||
libsmartcols
|
||||
@ -57,11 +59,6 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
# See https://github.com/NixOS/nixpkgs/issues/107428
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "enable_testing()" "" \
|
||||
--replace "add_subdirectory(tests)" ""
|
||||
|
||||
# https://github.com/rpm-software-management/libdnf/issues/1518
|
||||
substituteInPlace libdnf/libdnf.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
|
||||
|
Loading…
Reference in New Issue
Block a user