summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ks/kseexpr/package.nix
blob: ab98cde58b09d6d02635cb012c5d645df5a548fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  stdenv,
  fetchFromGitLab,
  cmake,
  qt6,
  kdePackages,
  bison,
  flex,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "kseexpr";
  version = "6.0.0.0";
  src = fetchFromGitLab {
    domain = "invent.kde.org";
    owner = "graphics";
    repo = "kseexpr";
    rev = "v${finalAttrs.version}";
    hash = "sha256-Z3CjQdKHeZ/6He43qVYQj8Fo0y88v/ldJJD8bPYOaEo=";
  };

  patches = [
    # see https://github.com/NixOS/nixpkgs/issues/144170
    ./cmake_libdir.patch
  ];

  nativeBuildInputs = [
    cmake
    kdePackages.extra-cmake-modules
  ];

  dontWrapQtApps = true;

  buildInputs = [
    bison
    flex
    kdePackages.ki18n
    qt6.qtbase
    qt6.qttools
  ];

  meta = {
    homepage = "https://invent.kde.org/graphics/kseexpr";
    description = "Embeddable expression evaluation engine";
    maintainers = [ ];
    license = lib.licenses.lgpl3Plus;
  };
})