distrho: cleanup premake usage
This commit is contained in:
parent
e0471b6c45
commit
932c1ff4c8
|
@ -1,7 +1,13 @@
|
||||||
{ stdenv, fetchFromGitHub, alsaLib, fftwSinglePrec, freetype, libjack2
|
{ stdenv, fetchFromGitHub, alsaLib, fftwSinglePrec, freetype, libjack2
|
||||||
, pkgconfig, premake3, xorg, ladspa-sdk }:
|
, pkgconfig, ladspa-sdk, premake3
|
||||||
|
, libX11, libXcomposite, libXcursor, libXext, libXinerama, libXrender
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
premakeos = if stdenv.hostPlatform.isDarwin then "osx"
|
||||||
|
else if stdenv.hostPlatform.isWindows then "mingw"
|
||||||
|
else "linux";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "distrho-ports-${version}";
|
name = "distrho-ports-${version}";
|
||||||
version = "2018-04-16";
|
version = "2018-04-16";
|
||||||
|
|
||||||
|
@ -12,27 +18,26 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0l4zwl4mli8jzch32a1fh7c88r9q17xnkxsdw17ds5hadnxlk12v";
|
sha256 = "0l4zwl4mli8jzch32a1fh7c88r9q17xnkxsdw17ds5hadnxlk12v";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
|
sh ./scripts/premake-update.sh ${premakeos}
|
||||||
|
|
||||||
|
runHook postConfigure
|
||||||
|
'';
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -e "s#@./scripts#sh scripts#" -i Makefile
|
sed -e "s#@./scripts#sh scripts#" -i Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig premake3 ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsaLib fftwSinglePrec freetype libjack2 premake3
|
alsaLib fftwSinglePrec freetype libjack2
|
||||||
xorg.libX11 xorg.libXcomposite xorg.libXcursor xorg.libXext
|
libX11 libXcomposite libXcursor libXext
|
||||||
xorg.libXinerama xorg.libXrender ladspa-sdk
|
libXinerama libXrender ladspa-sdk
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
makeFlags = "PREFIX=$(out)";
|
||||||
sh ./scripts/premake-update.sh linux
|
|
||||||
make lv2
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
mkdir -p $out/lib/lv2
|
|
||||||
cp -a bin/lv2/* $out/lib/lv2/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://distrho.sourceforge.net;
|
homepage = http://distrho.sourceforge.net;
|
||||||
|
|
Loading…
Reference in New Issue