about summary refs log tree commit diff
path: root/pkgs/applications/audio/open-music-kontrollers
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-04 16:49:14 -0800
committerGitHub <noreply@github.com>2024-03-04 19:49:14 -0500
commitaa07a3623a924242b523a5607bedc9f17897c0f3 (patch)
tree95e4adbd83d1294daf02b6f51d66871d29c1dccf /pkgs/applications/audio/open-music-kontrollers
parent788f65a3d7fdd14bdecf975fd45a9cfd04e367c8 (diff)
open-music-kontrollers.mephisto: 0.16.0 -> 0.18.2, fix build (#293048)
* faust: pull fix for users of faust/dsp/llvm-dsp-c.h

* open-music-kontrollers.mephisto: 0.16.0 -> 0.18.2, fix build

The generic package for these no longer works due to changes in the git hosting that upstream uses.
Diffstat (limited to 'pkgs/applications/audio/open-music-kontrollers')
-rw-r--r--pkgs/applications/audio/open-music-kontrollers/mephisto.nix53
1 files changed, 43 insertions, 10 deletions
diff --git a/pkgs/applications/audio/open-music-kontrollers/mephisto.nix b/pkgs/applications/audio/open-music-kontrollers/mephisto.nix
index de707edd3d917..2328b9979158a 100644
--- a/pkgs/applications/audio/open-music-kontrollers/mephisto.nix
+++ b/pkgs/applications/audio/open-music-kontrollers/mephisto.nix
@@ -1,17 +1,50 @@
-{ callPackage, faust, fontconfig, cmake, libvterm-neovim, libevdev, libglvnd, fira-code, ... } @ args:
+{ stdenv
+, lib
+, fetchFromSourcehut
+, pkg-config
+, cmake
+, meson
+, ninja
+, faust
+, fontconfig
+, glew
+, libvterm-neovim
+, lv2
+, lv2lint
+, sord
+, xorg
+}:
 
-callPackage ./generic.nix (args // rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "mephisto";
-  version = "0.16.0";
+  version = "0.18.2";
 
-  sha256 = "0vgr3rsvdj4w0xpc5iqpvyqilk42wr9zs8bg26sfv3f2wi4hb6gx";
+  src = fetchFromSourcehut {
+    domain = "open-music-kontrollers.ch";
+    owner = "~hp";
+    repo = "mephisto.lv2";
+    rev = finalAttrs.version;
+    hash = "sha256-ab6OGt1XVgynKNdszzdXwJ/jVKJSzgSmAv6j1U3/va0=";
+  };
 
-  additionalBuildInputs = [ faust fontconfig cmake libvterm-neovim libevdev libglvnd fira-code ];
+  nativeBuildInputs = [ pkg-config meson ninja fontconfig cmake ];
 
-  # see: https://github.com/OpenMusicKontrollers/mephisto.lv2/issues/6
-  postPatch = ''
-    sed -i 's/llvm-c-dsp/llvm-dsp-c/g' mephisto.c
-  '';
+  buildInputs = [
+    faust
+    libvterm-neovim
+    lv2
+    sord
+    xorg.libX11
+    xorg.libXext
+    glew
+    lv2lint
+  ];
 
-  description = "A Just-in-time FAUST embedded in an LV2 plugin";
+  meta = with lib; {
+    description = "A Just-in-time FAUST embedded in an LV2 plugin";
+    homepage = "https://git.open-music-kontrollers.ch/~hp/mephisto.lv2";
+    license = licenses.artistic2;
+    maintainers = [ maintainers.magnetophon ];
+    platforms = platforms.linux;
+  };
 })