mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
jaaa: refactor
This commit is contained in:
parent
4d12ea8311
commit
0a9d9639ea
@ -25,29 +25,20 @@ stdenv.mkDerivation rec {
|
|||||||
"-I${zita-alsa-pcmi}/include"
|
"-I${zita-alsa-pcmi}/include"
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
makeFlags = [
|
||||||
cd source/
|
"PREFIX=$(out)"
|
||||||
sed -i "s@clthreads.h@${libclthreads}/include@g" $(find . -name '*.cc')
|
"SUFFIX=''"
|
||||||
sed -i "s@clxclient.h@${libclxclient}/include@g" $(find . -name '*.cc')
|
];
|
||||||
sed -i "s@clthreads.h@${libclthreads}/include@g" $(find . -name '*.h')
|
|
||||||
sed -i "s@clxclient.h@${libclxclient}/include@g" $(find . -name '*.h')
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildlPhase = ''
|
preConfigure = ''
|
||||||
make PREFIX="$out"
|
cd ./source/
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
echo zita= ${zita-alsa-pcmi}
|
|
||||||
make PREFIX="$out" install
|
|
||||||
install -Dm644 ../README "$out/README"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/index.html;
|
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/index.html;
|
||||||
description = "JACK and ALSA Audio Analyser";
|
description = "JACK and ALSA Audio Analyser";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.magnetophon ];
|
maintainers = with maintainers; [ magnetophon ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user