kseexpr: init at 4.0.4.0

This commit is contained in:
nek0 2023-10-15 03:55:41 +02:00
parent 491af1f1cc
commit a0dd067cb3
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/cmake/kseexpr.pc.in b/cmake/kseexpr.pc.in
index 4b9f15f..fc76153 100644
--- a/cmake/kseexpr.pc.in
+++ b/cmake/kseexpr.pc.in
@@ -5,7 +5,7 @@
# pkg-config file for KSeExpr
prefix=@CMAKE_INSTALL_PREFIX@
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=${prefix}/include
Name: KSeExpr

View File

@ -0,0 +1,36 @@
{ stdenv, lib
, fetchFromGitLab
, sd
, cmake
, qt5
, libsForQt5
, bison, flex, llvm, extra-cmake-modules
}:
stdenv.mkDerivation rec {
pname = "kseexpr";
version = "4.0.4.0";
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "graphics";
repo = pname;
rev = "v${version}";
hash = "sha256-XjFGAN7kK2b0bLouYG3OhajhOQk4AgC4EQRzseccGCE=";
};
patches = [
# see https://github.com/NixOS/nixpkgs/issues/144170
./cmake_libdir.patch
];
buildInputs = [
qt5.qtbase
bison flex llvm libsForQt5.ki18n
];
nativeBuildInputs = [ cmake qt5.wrapQtAppsHook extra-cmake-modules ];
meta = with lib; {
homepage = "https://invent.kde.org/graphics/kseexpr";
description = "An embeddable expression evaluation engine";
maintainers = with maintainers; [ nek0 ];
license = licenses.lgpl3Plus;
};
}