summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/kn/knobkraft-orm/package.nix
blob: f7b000d1c12f6c204cf12321fd24271333fa9d9a (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  pkg-config,

  gtk3,
  glew,
  webkitgtk_4_1,
  cppcheck,
  icu,
  python312,
  glib,
  curlFull,
  boost,
  libbtbb,
  libsysprof-capture,
  pcre2,
  alsa-lib,
  util-linux,
  libselinux,
  libsepol,
  libthai,
  libdatrie,
  libxtst,
  libxdmcp,
  lerc,
  libxkbcommon,
  libepoxy,
  sqlite,
  git,
  libdeflate,
  xz,
  libwebp,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "KnobKraft-orm";

  version = "2.7.2";

  src = fetchFromGitHub {
    owner = "christofmuc";
    repo = "knobkraft-orm";
    tag = finalAttrs.version;
    fetchSubmodules = true;
    hash = "sha256-1mPeiey0hbJmg5k9R06wnDIGDDxbOfRixQ0zoFa4zYA=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    gtk3
    glew
    webkitgtk_4_1
    cppcheck
    icu
    python312
    glib
    curlFull
    boost
    libbtbb
    libsysprof-capture
    pcre2
    alsa-lib
    util-linux
    libselinux
    libsepol
    libthai
    libdatrie
    libxdmcp
    lerc
    libxkbcommon
    libepoxy
    libxtst
    sqlite
    git
    libdeflate
    xz
    libwebp
  ];

  # Issue has been raised and should be resolved with next release.
  # CMakeLists.txt needs three more lines to properly build.
  patches = [ ./temporary.patch ];

  cmakeFlags = [
    (lib.cmakeFeature "CMAKE_INTERPROCEDURAL_OP" "off")
    (lib.cmakeFeature "PYTHON_VERSION_TO_EMBED" "${python312.pythonVersion}")
  ];

  makeFlags = [
    "package"
  ];

  meta = {
    homepage = "https://github.com/christofmuc/KnobKraft-orm";
    description = "Modern FOSS MIDI Sysex Librarian";
    mainProgram = "KnobKraftOrm";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [
      backtail
    ];
    platforms = lib.platforms.linux;
  };
})