yder: init at 1.4.5
This commit is contained in:
parent
7fa534a4e1
commit
601221807c
42
pkgs/development/libraries/yder/default.nix
Normal file
42
pkgs/development/libraries/yder/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
9
pkgs/development/libraries/yder/fix-pkgconfig.patch
Normal file
9
pkgs/development/libraries/yder/fix-pkgconfig.patch
Normal file
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user