distrho: refactor, 2021-03-15 -> 2021-03-15-unstable-2024-05-01, fix build (#353163)

This commit is contained in:
Weijia Wang 2024-11-03 16:21:49 +01:00 committed by GitHub
commit de9e91149e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 113 additions and 100 deletions

View File

@ -1,98 +0,0 @@
{ lib
, stdenv
, alsa-lib
, fetchFromGitHub
, fftwFloat
, freetype
, libGL
, libX11
, libXcursor
, libXext
, libXrender
, meson
, ninja
, pkg-config
}:
let rpathLibs = [
fftwFloat
];
in
stdenv.mkDerivation rec {
pname = "distrho-ports";
version = "2021-03-15";
src = fetchFromGitHub {
owner = "DISTRHO";
repo = "DISTRHO-Ports";
rev = version;
sha256 = "00fgqwayd20akww3n2imyqscmyrjyc9jj0ar13k9dhpaxqk2jxbf";
};
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = rpathLibs ++ [
alsa-lib
freetype
libGL
libX11
libXcursor
libXext
libXrender
];
postFixup = ''
for file in \
$out/lib/lv2/vitalium.lv2/vitalium.so \
$out/lib/vst/vitalium.so \
$out/lib/vst3/vitalium.vst3/Contents/x86_64-linux/vitalium.so
do
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $file)" $file
done
'';
meta = with lib; {
homepage = "http://distrho.sourceforge.net/ports";
description = "Linux audio plugins and LV2 ports";
longDescription = ''
Includes:
arctican-function
arctican-pilgrim
dexed
drowaudio-distortion
drowaudio-distortionshaper
drowaudio-flanger
drowaudio-reverb
drowaudio-tremolo
drumsynth
easySSP
eqinox
HiReSam
juce-opl
klangfalter
LUFSMeter
LUFSMeter-Multi
luftikus
obxd
pitchedDelay
refine
stereosourceseparation
swankyamp
tal-dub-3
tal-filter
tal-filter-2
tal-noisemaker
tal-reverb
tal-reverb-2
tal-reverb-3
tal-vocoder-2
temper
vex
vitalium
wolpertinger
'';
license = with licenses; [ gpl2Only gpl3Only gpl2Plus lgpl2Plus lgpl3Only mit ];
maintainers = [ ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -0,0 +1,113 @@
{
lib,
stdenv,
alsa-lib,
fetchFromGitHub,
fftwFloat,
freetype,
libGL,
libX11,
libXcursor,
libXext,
libXrender,
meson,
ninja,
pkg-config,
}:
let
rpathLibs = [
fftwFloat
];
in
stdenv.mkDerivation {
pname = "distrho-ports";
version = "2021-03-15-unstable-2024-05-01";
src = fetchFromGitHub {
owner = "DISTRHO";
repo = "DISTRHO-Ports";
rev = "b3596e6a690eb0556e69e8b6d943fee2dfbb04fb";
sha256 = "00fgqwayd20akww3n2imyqscmyrjyc9jj0ar13k9dhpaxqk2jxbf";
};
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = rpathLibs ++ [
alsa-lib
freetype
libGL
libX11
libXcursor
libXext
libXrender
];
env.NIX_CFLAGS_COMPILE = toString [ "-fpermissive" ];
postFixup = ''
for file in \
$out/lib/lv2/vitalium.lv2/vitalium.so \
$out/lib/vst/vitalium.so \
$out/lib/vst3/vitalium.vst3/Contents/x86_64-linux/vitalium.so
do
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $file)" $file
done
'';
meta = {
homepage = "http://distrho.sourceforge.net/ports";
description = "Linux audio plugins and LV2 ports";
longDescription = ''
Includes:
- arctican-function
- arctican-pilgrim
- dexed
- drowaudio-distortion
- drowaudio-distortionshaper
- drowaudio-flanger
- drowaudio-reverb
- drowaudio-tremolo
- drumsynth
- easySSP
- eqinox
- HiReSam
- juce-opl
- klangfalter
- LUFSMeter
- LUFSMeter-Multi
- luftikus
- obxd
- pitchedDelay
- refine
- stereosourceseparation
- swankyamp
- tal-dub-3
- tal-filter
- tal-filter-2
- tal-noisemaker
- tal-reverb
- tal-reverb-2
- tal-reverb-3
- tal-vocoder-2
- temper
- vex
- vitalium
- wolpertinger
'';
license = with lib.licenses; [
gpl2Only
gpl3Only
gpl2Plus
lgpl2Plus
lgpl3Only
mit
];
maintainers = [ ];
platforms = lib.systems.inspect.patternLogicalAnd lib.systems.inspect.patterns.isLinux lib.systems.inspect.patterns.isx86;
};
}

View File

@ -28536,8 +28536,6 @@ with pkgs;
dirt = callPackage ../applications/audio/dirt { };
distrho = callPackage ../applications/audio/distrho { };
dit = callPackage ../applications/editors/dit { };
djvulibre = callPackage ../applications/misc/djvulibre { };