yder: init at 1.4.5

This commit is contained in:
Daniel Schaefer 2019-06-28 01:44:45 +02:00
parent 7fa534a4e1
commit 601221807c
3 changed files with 53 additions and 0 deletions

@ -0,0 +1,42 @@
{ stdenv, lib, fetchFromGitHub, cmake, orcania, systemd, check, subunit }:
stdenv.mkDerivation rec {
pname = "yder";
version = "1.4.6";
src = fetchFromGitHub {
owner = "babelouest";
repo = pname;
rev = "v${version}";
sha256 = "0j46v93vn130gjcr704rkdiibbk3ampzsqb6xdcrn4x115gwyf5i";
};
patches = [
# We set CMAKE_INSTALL_LIBDIR to the absolute path in $out, so
# prefix and exec_prefix cannot be $out, too
./fix-pkgconfig.patch
];
nativeBuildInputs = [ cmake ];
buildInputs = [ orcania ];
checkInputs = [ check subunit ];
cmakeFlags = [
"-DBUILD_YDER_TESTING=on"
];
doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
'';
meta = with lib; {
description = "Logging library for C applications";
homepage = "https://github.com/babelouest/yder";
license = licenses.lgpl21;
maintainers = with maintainers; [ johnazoidberg ];
platforms = platforms.linux;
};
}

@ -0,0 +1,9 @@
--- i/libyder.pc.in
+++ w/libyder.pc.in
@@ -1,7 +1,5 @@
-prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=@CMAKE_INSTALL_PREFIX@
-libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
+libdir=@CMAKE_INSTALL_LIBDIR@
+includedir=@CMAKE_INSTALL_INCLUDEDIR@

@ -13799,6 +13799,8 @@ in
yajl = callPackage ../development/libraries/yajl { };
yder = callPackage ../development/libraries/yder { };
yojimbo = callPackage ../development/libraries/yojimbo { };
yubioath-desktop = libsForQt5.callPackage ../applications/misc/yubioath-desktop { };