2020-10-16 20:44:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, dpkg
|
|
|
|
, qt5
|
|
|
|
, libjack2
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-10-16 20:44:37 +00:00
|
|
|
, bzip2
|
|
|
|
, libpulseaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocenaudio";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "3.11.15";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.ocenaudio.com/downloads/index.php/ocenaudio_debian9_64.deb?version=${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-l3Fv0gKKGYrbxpGHH6MXflK5fCrGoq3Qu+XkqFqMJJk=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
qt5.qtbase
|
2021-05-03 20:48:10 +00:00
|
|
|
qt5.wrapQtAppsHook
|
2020-10-16 20:44:37 +00:00
|
|
|
libjack2
|
|
|
|
libpulseaudio
|
|
|
|
bzip2
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-10-16 20:44:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
dpkg -x $src $out
|
|
|
|
cp -av $out/opt/ocenaudio/* $out
|
|
|
|
rm -rf $out/opt
|
|
|
|
|
|
|
|
# Create symlink bzip2 library
|
2022-03-30 09:31:56 +00:00
|
|
|
ln -s ${bzip2.out}/lib/libbz2.so.1 $out/lib/libbz2.so.1.0
|
2020-10-16 20:44:37 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "Cross-platform, easy to use, fast and functional audio editor";
|
|
|
|
homepage = "https://www.ocenaudio.com";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|