nix: use system botan

This commit is contained in:
Patrizio Bekerle 2023-05-26 14:44:59 +02:00
parent a55e7793fe
commit ad5677bb15
No known key found for this signature in database
GPG key ID: 67EF441ECF195217

View file

@ -39,10 +39,16 @@ stdenv.mkDerivation {
botan2
] ++ lib.optionals stdenv.isLinux [ qtwayland ];
# qmakeFlags = [
# "QOwnNotes.pro"
# "USE_SYSTEM_BOTAN=1"
# ];
postPatch = ''
substituteInPlace ./libraries/botan/botan.pri \
--replace "PKGCONFIG += botan-2" ""
'';
qmakeFlags = [
"USE_SYSTEM_BOTAN=1"
"INCLUDEPATH+=${botan2}/include/botan-2"
"LIBS+=${botan2}/lib/libbotan-2.so"
];
postInstall =
# Create a lowercase symlink for Linux