Skip to content

Commit

Permalink
Use patch from Arch Linux instead of sed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampoina committed Mar 31, 2023
1 parent 101da0d commit 23a868d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/applications/audio/lmms/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, cmake, pkg-config, alsa-lib ? null, carla ? null, fftwFloat, fltk13
{ lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, alsa-lib ? null, carla ? null, fftwFloat, fltk13
, fluidsynth ? null, lame ? null, libgig ? null, libjack2 ? null, libpulseaudio ? null
, libsamplerate, libsoundio ? null, libsndfile, libvorbis ? null, portaudio ? null
, qtbase, qtx11extras, qttools, SDL ? null, mkDerivation }:
Expand Down Expand Up @@ -37,9 +37,12 @@ mkDerivation rec {
SDL # TODO: switch to SDL2 in the next version
];

patchPhase = ''
sed -i "s/CARLA_EXPORT/CARLA_API_EXPORT/g" -i plugins/carlabase/carla.h;
'';
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/packages/lmms/trunk/lmms-carla-export.patch";
sha256 = "sha256-wlSewo93DYBN2PvrcV58dC9kpoo9Y587eCeya5OX+j4=";
})
];

cmakeFlags = [ "-DWANT_QT5=ON" ];

Expand Down

0 comments on commit 23a868d

Please sign in to comment.